@eliya-oss/agent-diff 0.1.0-alpha.158 → 0.1.0-alpha.159
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 +15 -0
- package/dist/main.js +17 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.159
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(diff): a thread under a line marks the reviewer's own words, and two threads on one line read oldest first with a rule between them.
|
|
8
|
+
|
|
9
|
+
<details><summary>What was wrong</summary>
|
|
10
|
+
|
|
11
|
+
The agent's answers carried an arrow and somebody else's remark carried a handle, but the reviewer's
|
|
12
|
+
own comment had no mark at all, so it read as a continuation of the heading above it. Two threads on
|
|
13
|
+
one line ran together with nothing between them, newest drawn first, so a conversation read backwards
|
|
14
|
+
and it was not clear who said which part.
|
|
15
|
+
|
|
16
|
+
</details>
|
|
17
|
+
|
|
3
18
|
## 0.1.0-alpha.158
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -10781,6 +10781,7 @@ var init_commands = __esmMin((() => {
|
|
|
10781
10781
|
const takenAt = [...ids].flatMap((id) => taken[id] ?? []).toSorted().at(-1);
|
|
10782
10782
|
return {
|
|
10783
10783
|
id: comment.id,
|
|
10784
|
+
at: comment.at,
|
|
10784
10785
|
file: comment.file,
|
|
10785
10786
|
side: comment.side,
|
|
10786
10787
|
start: comment.start,
|
|
@@ -11326,7 +11327,7 @@ var init_pane = __esmMin((() => {
|
|
|
11326
11327
|
//#region package.json
|
|
11327
11328
|
init_drafts();
|
|
11328
11329
|
init_pane();
|
|
11329
|
-
var version$1 = "0.1.0-alpha.
|
|
11330
|
+
var version$1 = "0.1.0-alpha.159";
|
|
11330
11331
|
//#endregion
|
|
11331
11332
|
//#region src/cli/upgrade.ts
|
|
11332
11333
|
var PACKAGE, TAG, RELEASES, REGISTRY, ASK_MS, RUN_MS, CELLAR, COMPILED, INSTALLED, BUN_GLOBAL, routeOf, ROUTES, asRoute, checkoutOf, assetOf, commandFor, NOTES, RUNNABLE, NUMBERS, numbersIn, compare$1, partsOf$1, newer, tagIn, fetched, askLatest, here, findUpgrade, willUpgrade, ranChild, runUpgrade, statusOf$1, sayFound, sayDone, attempted, SAY_SKILL_TOO, upgradeReport;
|
|
@@ -16980,7 +16981,7 @@ var init_theme = __esmMin((() => {
|
|
|
16980
16981
|
}));
|
|
16981
16982
|
//#endregion
|
|
16982
16983
|
//#region src/tui/diffview.ts
|
|
16983
|
-
var WASH, NOTE_MIN, ANSWER_MARK, REPLY_MARK, OVERSCAN, SIGN_WIDTH, SCROLL_ROWS, PAN_COLUMNS, WAYS, notchesIn, takenOver, wheelTo, SIGNS, numberFor, DiffView, startsOf, numbered, bareOf, noteKey, keyOf, groupOf, isChrome, alike, heldAt, sameLine, NO_SPANS, lineStarts, overLine, shifted, acrossLines, spansByLine, textAt, noteSpans, NOTE_PAINT, wrap, REMARK_MARK$1, remarkHead, commentHead, headOf, spokenLines, heardFrom, answerLines, REMARK_LINES, capped, bodyLines, noteLines, REMARK_RULE, noteRows, proseRows, freshLines, proseAt, notesAt, TRAILING, shownText, codeRow, rowsFor, replacedBy, layout, lineNumbers, BARE_SIGN, signFor, lineSigns, sideLineOf;
|
|
16984
|
+
var WASH, NOTE_MIN, ANSWER_MARK, REPLY_MARK, OVERSCAN, SIGN_WIDTH, SCROLL_ROWS, PAN_COLUMNS, WAYS, notchesIn, takenOver, wheelTo, SIGNS, numberFor, DiffView, startsOf, numbered, bareOf, noteKey, keyOf, groupOf, isChrome, alike, heldAt, sameLine, NO_SPANS, lineStarts, overLine, shifted, acrossLines, spansByLine, textAt, noteSpans, NOTE_PAINT, wrap, 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, rowsFor, replacedBy, layout, lineNumbers, BARE_SIGN, signFor, lineSigns, sideLineOf;
|
|
16984
16985
|
var init_diffview = __esmMin((() => {
|
|
16985
16986
|
init_dist();
|
|
16986
16987
|
init_patch();
|
|
@@ -17574,9 +17575,10 @@ var init_diffview = __esmMin((() => {
|
|
|
17574
17575
|
const said = note.body.split("\n").flatMap((line) => wrap(line, room));
|
|
17575
17576
|
return note.from === void 0 ? said : capped(said, REMARK_LINES);
|
|
17576
17577
|
};
|
|
17578
|
+
saidLines = (note, room) => note.from === void 0 ? bodyLines(note, room).map((line, at) => at === 0 ? `${REPLY_MARK} ${line}` : ` ${line}`) : bodyLines(note, room);
|
|
17577
17579
|
noteLines = (note, room) => note.folded ? [`${headOf(note)} · press l`] : [
|
|
17578
17580
|
headOf(note),
|
|
17579
|
-
...
|
|
17581
|
+
...saidLines(note, room),
|
|
17580
17582
|
...answerLines(note, room)
|
|
17581
17583
|
];
|
|
17582
17584
|
REMARK_RULE = "┊";
|
|
@@ -17611,7 +17613,17 @@ var init_diffview = __esmMin((() => {
|
|
|
17611
17613
|
const wanted = plan.prose.filter((entry) => entry.after === after && entry.line === line);
|
|
17612
17614
|
return fresh !== void 0 ? wanted : wanted.filter(() => !plan.fresh.has(line));
|
|
17613
17615
|
};
|
|
17614
|
-
|
|
17616
|
+
apart = (row, stop) => ({
|
|
17617
|
+
text: marks().rule,
|
|
17618
|
+
row,
|
|
17619
|
+
stop,
|
|
17620
|
+
comment: true,
|
|
17621
|
+
sent: false,
|
|
17622
|
+
label: false,
|
|
17623
|
+
gap: false,
|
|
17624
|
+
prose: false
|
|
17625
|
+
});
|
|
17626
|
+
notesAt = (plan, row) => plan.notes.filter((note) => sideLineOf(row, note.side) === note.line).flatMap((note, at) => at === 0 ? noteRows(note, row.index, plan.room, at + 1) : [apart(row.index, at + 1)].concat(noteRows(note, row.index, plan.room, at + 1)));
|
|
17615
17627
|
TRAILING = /[ \t]+$/;
|
|
17616
17628
|
shownText = (row) => {
|
|
17617
17629
|
if (row.kind === "context") return row.text;
|
|
@@ -18316,7 +18328,7 @@ var init_render = __esmMin((() => {
|
|
|
18316
18328
|
notesOf = (comments, path, sent, shown = {
|
|
18317
18329
|
opened: [],
|
|
18318
18330
|
now: Date.now()
|
|
18319
|
-
}) => comments.filter((entry) => entry.file === path && entry.outside !== true).map((entry) => ({
|
|
18331
|
+
}) => comments.filter((entry) => entry.file === path && entry.outside !== true).toSorted((left, right) => (left.at ?? "").localeCompare(right.at ?? "")).map((entry) => ({
|
|
18320
18332
|
id: entry.id ?? "",
|
|
18321
18333
|
folded: entry.settled === true && !(entry.id !== void 0 && shown.opened.includes(entry.id)),
|
|
18322
18334
|
side: entry.side,
|
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.159",
|
|
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": {
|