@eliya-oss/agent-diff 0.1.0-alpha.174 → 0.1.0-alpha.176
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 +27 -0
- package/dist/main.js +21 -9
- package/package.json +1 -1
- package/skills/adiff/SKILL.md +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.176
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(diff pane): a comment held until the review is sent shows under its line, marked waiting to be sent.
|
|
8
|
+
|
|
9
|
+
<details><summary>What was wrong</summary>
|
|
10
|
+
|
|
11
|
+
With holding on, a written comment reached only the review panel. The diff showed nothing under the
|
|
12
|
+
line, so a line you had commented on looked like one you had not.
|
|
13
|
+
|
|
14
|
+
</details>
|
|
15
|
+
|
|
16
|
+
## 0.1.0-alpha.175
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- fix(agent skill): the agent edits and answers by id, and commits when the work forms a unit rather than once per comment.
|
|
21
|
+
|
|
22
|
+
<details><summary>What was wrong</summary>
|
|
23
|
+
|
|
24
|
+
The skill said the next commit is the reply and that a question is answered in the commit message.
|
|
25
|
+
Agents took it literally, so a review ended in a pile of one-comment commits, and answers written
|
|
26
|
+
into commit messages never reached the reviewer's screen.
|
|
27
|
+
|
|
28
|
+
</details>
|
|
29
|
+
|
|
3
30
|
## 0.1.0-alpha.174
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -10027,7 +10027,7 @@ var init_config = __esmMin((() => {
|
|
|
10027
10027
|
//#region package.json
|
|
10028
10028
|
init_pane();
|
|
10029
10029
|
init_config();
|
|
10030
|
-
var version$1 = "0.1.0-alpha.
|
|
10030
|
+
var version$1 = "0.1.0-alpha.176";
|
|
10031
10031
|
//#endregion
|
|
10032
10032
|
//#region src/cli/error.ts
|
|
10033
10033
|
var UnknownCommand, MissingOption, UnknownField, UnknownOption, BadOption, RegistryUnanswered;
|
|
@@ -17189,7 +17189,7 @@ var init_notes = __esmMin((() => {
|
|
|
17189
17189
|
const patch = selectedPatch(state);
|
|
17190
17190
|
const found = /* @__PURE__ */ new Map();
|
|
17191
17191
|
if (patch === void 0) return found;
|
|
17192
|
-
const here = state.sent.filter((entry) => entry.file === patch.path && entry.removed !== true && entry.outside !== true);
|
|
17192
|
+
const here = [...state.sent, ...state.held].filter((entry) => entry.file === patch.path && entry.removed !== true && entry.outside !== true);
|
|
17193
17193
|
for (const entry of here) {
|
|
17194
17194
|
const stand = threadStand(entry);
|
|
17195
17195
|
for (const row of rowsUnder(patch, entry)) found.set(row, louderOf(stand, found.get(row) ?? "gone"));
|
|
@@ -17247,7 +17247,7 @@ var init_notes = __esmMin((() => {
|
|
|
17247
17247
|
commentRowsIn = (state, fileIndex) => {
|
|
17248
17248
|
const patch = fileIndex === state.patchIndex ? selectedPatch(state) : state.patches[fileIndex];
|
|
17249
17249
|
if (patch === void 0) return [];
|
|
17250
|
-
const notes = state.sent.filter((entry) => entry.file === patch.path && entry.outside !== true);
|
|
17250
|
+
const notes = [...state.sent, ...state.held].filter((entry) => entry.file === patch.path && entry.outside !== true);
|
|
17251
17251
|
return patch.rows.filter((row) => notes.some((note) => lineOnSide(row, note.side) === note.end)).map((row) => row.index).toSorted((left, right) => left - right);
|
|
17252
17252
|
};
|
|
17253
17253
|
draftPlace = (state) => {
|
|
@@ -18525,7 +18525,7 @@ var init_theme = __esmMin((() => {
|
|
|
18525
18525
|
"note.label": { fg: "#7aa2f7" },
|
|
18526
18526
|
default: { fg: ink }
|
|
18527
18527
|
};
|
|
18528
|
-
})), Code, Gap, Comment, Label, DraftLine, ProseLine, $is, $match, isCode, isDraft, isProse, isSaid, isNote, isChrome, WASH, NOTE_MIN, OVERSCAN, SIGN_WIDTH, SCROLL_ROWS, PAN_COLUMNS, WAYS, wheelTo, SIGNS, numberFor, DiffView, startsOf, numbered, bareOf, noteKey, keyOf, groupOf, alike, heldAt, sameLine, NO_SPANS, lineStarts, overLine, shifted, acrossLines, firstOfEach, spansByLine, textAt, noteSpans, NOTE_PAINT, wrap, SAID_INDENT, REMARK_MARK$1, remarkHead, commentHead, headOf, spokenLines, heardFrom, answerLines, REMARK_LINES, capped, bodyLines, saidLines, noteLines, REMARK_RULE, noteRows, proseRows, freshLines, proseAt, apart, notesAt, TRAILING, shownText, codeRow, DRAFT_STOP, draftText, draftRows, rowsFor, replacedBy, layout, lineNumbers, BARE_SIGN, signFor, lineSigns, sideLineOf;
|
|
18528
|
+
})), Code, Gap, Comment, Label, DraftLine, ProseLine, $is, $match, isCode, isDraft, isProse, isSaid, isNote, isChrome, WASH, NOTE_MIN, OVERSCAN, SIGN_WIDTH, SCROLL_ROWS, PAN_COLUMNS, WAYS, wheelTo, SIGNS, numberFor, DiffView, startsOf, numbered, bareOf, noteKey, keyOf, groupOf, alike, heldAt, sameLine, NO_SPANS, lineStarts, overLine, shifted, acrossLines, firstOfEach, spansByLine, textAt, noteSpans, NOTE_PAINT, wrap, SAID_INDENT, REMARK_MARK$1, remarkHead, HELD_HEAD, commentHead, headOf, spokenLines, heardFrom, answerLines, REMARK_LINES, capped, bodyLines, saidLines, noteLines, REMARK_RULE, noteRows, proseRows, freshLines, proseAt, apart, notesAt, TRAILING, shownText, codeRow, DRAFT_STOP, draftText, draftRows, rowsFor, replacedBy, layout, lineNumbers, BARE_SIGN, signFor, lineSigns, sideLineOf;
|
|
18529
18529
|
var init_diffview = __esmMin((() => {
|
|
18530
18530
|
init_dist();
|
|
18531
18531
|
init_patch();
|
|
@@ -19022,6 +19022,7 @@ var init_diffview = __esmMin((() => {
|
|
|
19022
19022
|
};
|
|
19023
19023
|
noteKey = (note) => [
|
|
19024
19024
|
`${note.side}${note.line}:${note.folded ? "-" : "+"}${note.body}`,
|
|
19025
|
+
note.sent ? "sent" : "held",
|
|
19025
19026
|
note.settled ? "settled" : note.asks ? "asked" : "open",
|
|
19026
19027
|
...note.turns.length > 0 ? note.turns.map((turn) => `${turn.voice[0] ?? ""}:${turn.body}`) : note.answers.map((body) => `a:${body}`)
|
|
19027
19028
|
].join("");
|
|
@@ -19145,6 +19146,7 @@ var init_diffview = __esmMin((() => {
|
|
|
19145
19146
|
SAID_INDENT = 2;
|
|
19146
19147
|
REMARK_MARK$1 = "◇";
|
|
19147
19148
|
remarkHead = (note, from) => `${REMARK_MARK$1} @${from}${note.stale ? " · outdated" : ""}`;
|
|
19149
|
+
HELD_HEAD = "waiting to be sent";
|
|
19148
19150
|
commentHead = (note) => {
|
|
19149
19151
|
const moved = note.stale ? ", the branch moved on" : "";
|
|
19150
19152
|
if (note.settled) return `${marks().done} settled${moved}`;
|
|
@@ -19154,7 +19156,10 @@ var init_diffview = __esmMin((() => {
|
|
|
19154
19156
|
if (note.takenAt === void 0) return `${marks().sent} sent${moved}`;
|
|
19155
19157
|
return `${marks().waiting} picked up ${agoText(note.takenAt, note.now)}${moved}`;
|
|
19156
19158
|
};
|
|
19157
|
-
headOf = (note) =>
|
|
19159
|
+
headOf = (note) => {
|
|
19160
|
+
if (note.from !== void 0) return remarkHead(note, note.from);
|
|
19161
|
+
return note.sent ? commentHead(note) : `${marks().filed} ${HELD_HEAD}`;
|
|
19162
|
+
};
|
|
19158
19163
|
spokenLines = (body, room, mark) => {
|
|
19159
19164
|
return body.split("\n").flatMap((line) => wrap(line, Math.max(NOTE_MIN, room - 2))).map((text, at) => at === 0 ? `${mark} ${text}` : ` ${text}`);
|
|
19160
19165
|
};
|
|
@@ -19378,10 +19383,17 @@ var init_notespane = __esmMin((() => {
|
|
|
19378
19383
|
takenAt: void 0,
|
|
19379
19384
|
now: state.now
|
|
19380
19385
|
}));
|
|
19381
|
-
notesFor = (state, path) => [
|
|
19382
|
-
|
|
19383
|
-
|
|
19384
|
-
|
|
19386
|
+
notesFor = (state, path) => [
|
|
19387
|
+
...notesOf(stillThere(state.sent), path, true, {
|
|
19388
|
+
opened: state.opened,
|
|
19389
|
+
now: state.now
|
|
19390
|
+
}),
|
|
19391
|
+
...notesOf(state.held, path, false, {
|
|
19392
|
+
opened: state.opened,
|
|
19393
|
+
now: state.now
|
|
19394
|
+
}),
|
|
19395
|
+
...remarksOf(state, path)
|
|
19396
|
+
];
|
|
19385
19397
|
standingOnRemark = (state) => remarkHere(state) !== void 0;
|
|
19386
19398
|
standingOnDismissed = (state) => remarkUnderCursor(state)?.dismissed === true;
|
|
19387
19399
|
})), PANEL_TITLES, PANEL_ORDER, PANEL_LEAD, PANEL_EMPTY, restingOrHere, remarkWhere, wherePart, panelFile, panelWhere, panelBody, panelMark, lostCode, lostEntry, writtenOn, foldLine, panelPair, panelSection, PULL_HINT, panelWindow, moreLine, panelPicked, panelText;
|
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.176",
|
|
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
|
@@ -121,9 +121,13 @@ Read `snippet` before opening the file: the reviewer commented on the diff, and
|
|
|
121
121
|
moved on since. If `head` no longer matches `git rev-parse --short HEAD`, the change you are being
|
|
122
122
|
asked about may already be gone — say so rather than guessing at what they meant.
|
|
123
123
|
|
|
124
|
-
Answer the comment by doing the work,
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
Answer the comment by doing the work, then say what you did with `adiff comment answer`, by id.
|
|
125
|
+
The reviewer is watching the diff, and the diff is read from the working tree, so an edit shows the
|
|
126
|
+
moment they read the branch again: no commit is needed for them to see it. Do not commit once per
|
|
127
|
+
comment. Commit when the work forms a change you would want as a commit anyway, and let one commit
|
|
128
|
+
answer as many comments as it addresses. When a comment is a question rather than a request, answer
|
|
129
|
+
it with `adiff comment answer` too; an answer written into a commit message never reaches the
|
|
130
|
+
reviewer's screen.
|
|
127
131
|
|
|
128
132
|
Handle every comment in the batch before taking again.
|
|
129
133
|
|