@eliya-oss/agent-diff 0.1.0-alpha.136 → 0.1.0-alpha.138
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/.claude/skills/release-notes/SKILL.md +4 -3
- package/CHANGELOG.md +58 -0
- package/dist/main.js +64 -20
- package/package.json +3 -2
|
@@ -36,9 +36,10 @@ If you are unsure, ask: would someone who upgraded notice? If no, no file.
|
|
|
36
36
|
gerund — `a-file-with-an-accent.md`, not `keeping-a-file-with-an-accent.md`. The bump is `patch`
|
|
37
37
|
until this reaches 1.0, whatever the kind says.
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
`.changeset/` holds only what has not shipped yet, so it is usually empty or nearly so. A release
|
|
40
|
+
collects the intents it consumed and deletes them — their words live on in `CHANGELOG.md`, and
|
|
41
|
+
`.changeset/ledger.yaml` records which release took which. Do not go looking for a neighbouring
|
|
42
|
+
file to copy; follow this page.
|
|
42
43
|
|
|
43
44
|
```markdown
|
|
44
45
|
---
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.138
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(review panel): the cursor keeps its place when you settle a thread, so the next one comes to it.
|
|
8
|
+
|
|
9
|
+
<details><summary>What was wrong</summary>
|
|
10
|
+
|
|
11
|
+
Settling followed the thread into the Settled section at the bottom of the panel, so closing a
|
|
12
|
+
column of threads meant walking back up to the top after every one.
|
|
13
|
+
|
|
14
|
+
</details>
|
|
15
|
+
|
|
16
|
+
fix(keys): tab moves to the next pane on the screen instead of bringing the file list back.
|
|
17
|
+
|
|
18
|
+
<details><summary>What was wrong</summary>
|
|
19
|
+
|
|
20
|
+
Hiding the file list with `t` and then pressing tab reopened it, so there was no way to move
|
|
21
|
+
between the diff and the review panel with the room the file list had been taking.
|
|
22
|
+
|
|
23
|
+
</details>
|
|
24
|
+
|
|
25
|
+
## 0.1.0-alpha.137
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- fix(diff): a layer's prose carries a rule down its margin, so it cannot be read as the file.
|
|
30
|
+
|
|
31
|
+
<details><summary>What was wrong</summary>
|
|
32
|
+
|
|
33
|
+
The prose sat between two lines of code with no line number, no marker and nothing else to say it was not part of the file, so a note about the change below it read as stray markdown someone had committed.
|
|
34
|
+
|
|
35
|
+
</details>
|
|
36
|
+
|
|
37
|
+
perf(diff): turning to the next file takes about 15ms, down from about 77ms.
|
|
38
|
+
|
|
39
|
+
<details><summary>What was wrong</summary>
|
|
40
|
+
|
|
41
|
+
Every turn read the whole file at both ends of the diff before the screen moved, and those two reads exist only to feed syntax highlighting. The diff itself is already in memory, so the file now opens straight away and the colour follows it.
|
|
42
|
+
|
|
43
|
+
</details>
|
|
44
|
+
|
|
45
|
+
- feat(keys): `t` shows or hides the file list on its own, leaving the review panel where it is.
|
|
46
|
+
|
|
47
|
+
<details><summary>What was wrong</summary>
|
|
48
|
+
|
|
49
|
+
`z` hid the file list and the review panel together, so reading a wide diff beside your comments meant hiding both and bringing one back — `z` then `a`, which works by accident of composition rather than because anything offers it.
|
|
50
|
+
|
|
51
|
+
</details>
|
|
52
|
+
|
|
53
|
+
fix(footer): a stale reading order says which key asks for a new one.
|
|
54
|
+
|
|
55
|
+
<details><summary>What was wrong</summary>
|
|
56
|
+
|
|
57
|
+
The header said `layers stale` and stopped there, and `L` was in neither footer, so the one thing to do about it was only findable by reading the key sheet. The header now names the key, and the footer offers it while the order is stale.
|
|
58
|
+
|
|
59
|
+
</details>
|
|
60
|
+
|
|
3
61
|
## 0.1.0-alpha.136
|
|
4
62
|
|
|
5
63
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -11098,7 +11098,7 @@ var init_pane = __esmMin((() => {
|
|
|
11098
11098
|
init_drafts();
|
|
11099
11099
|
init_init();
|
|
11100
11100
|
init_pane();
|
|
11101
|
-
var version$1 = "0.1.0-alpha.
|
|
11101
|
+
var version$1 = "0.1.0-alpha.138";
|
|
11102
11102
|
//#endregion
|
|
11103
11103
|
//#region src/cli/upgrade.ts
|
|
11104
11104
|
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, newer, tagIn, fetched, askLatest, here, findUpgrade, willUpgrade, ranChild, runUpgrade, statusOf$1, sayFound, sayDone, attempted, REFRESH_MS, refreshSkills, updatedIn, sayRefreshed, upgradeReport;
|
|
@@ -13930,6 +13930,7 @@ var init_command = __esmMin((() => {
|
|
|
13930
13930
|
whenComments: false,
|
|
13931
13931
|
counted: false,
|
|
13932
13932
|
whenLayers: false,
|
|
13933
|
+
whenStale: false,
|
|
13933
13934
|
whenThread: false,
|
|
13934
13935
|
whenSelecting: false,
|
|
13935
13936
|
whenReviewed: false,
|
|
@@ -14376,6 +14377,20 @@ var init_command = __esmMin((() => {
|
|
|
14376
14377
|
whenReviewed: true,
|
|
14377
14378
|
rank: 3
|
|
14378
14379
|
}),
|
|
14380
|
+
command({
|
|
14381
|
+
action: "nav.toggle",
|
|
14382
|
+
also: [
|
|
14383
|
+
"sidebar",
|
|
14384
|
+
"file list",
|
|
14385
|
+
"collapse",
|
|
14386
|
+
"expand",
|
|
14387
|
+
"hide files"
|
|
14388
|
+
],
|
|
14389
|
+
title: "Show or hide the file list",
|
|
14390
|
+
category: "Reading",
|
|
14391
|
+
keys: ["t"],
|
|
14392
|
+
screens: ["review"]
|
|
14393
|
+
}),
|
|
14379
14394
|
command({
|
|
14380
14395
|
action: "layers.ask",
|
|
14381
14396
|
also: [
|
|
@@ -14386,7 +14401,10 @@ var init_command = __esmMin((() => {
|
|
|
14386
14401
|
title: "Ask the agent for a reading order",
|
|
14387
14402
|
category: "Files",
|
|
14388
14403
|
keys: ["L"],
|
|
14389
|
-
screens: ["review"]
|
|
14404
|
+
screens: ["review"],
|
|
14405
|
+
hint: "new order",
|
|
14406
|
+
rank: 6,
|
|
14407
|
+
whenStale: true
|
|
14390
14408
|
}),
|
|
14391
14409
|
command({
|
|
14392
14410
|
action: "rail.toggle",
|
|
@@ -14639,7 +14657,7 @@ var init_command = __esmMin((() => {
|
|
|
14639
14657
|
if (swapped !== void 0) return swapped(offered);
|
|
14640
14658
|
return entry.counted ? `${entry.hint} ${offered.comments}` : entry.hint;
|
|
14641
14659
|
};
|
|
14642
|
-
hintsFor = (screen, offered) => commandsFor(screen).filter((entry) => entry.hint.length > 0).filter((entry) => !entry.whenComments || offered.comments > 0).filter((entry) => !entry.whenLayers || offered.layers > 0).filter((entry) => !entry.whenThread || offered.onThread).filter((entry) => !entry.whenSelecting || offered.selecting).filter((entry) => !entry.whenReviewed || offered.reviewed > 0).filter((entry) => !entry.whenPull || offered.pull).filter((entry) => entry.panes.includes(offered.pane)).toSorted((left, right) => left.rank - right.rank).map((entry) => ({
|
|
14660
|
+
hintsFor = (screen, offered) => commandsFor(screen).filter((entry) => entry.hint.length > 0).filter((entry) => !entry.whenComments || offered.comments > 0).filter((entry) => !entry.whenLayers || offered.layers > 0).filter((entry) => !entry.whenStale || offered.stale).filter((entry) => !entry.whenThread || offered.onThread).filter((entry) => !entry.whenSelecting || offered.selecting).filter((entry) => !entry.whenReviewed || offered.reviewed > 0).filter((entry) => !entry.whenPull || offered.pull).filter((entry) => entry.panes.includes(offered.pane)).toSorted((left, right) => left.rank - right.rank).map((entry) => ({
|
|
14643
14661
|
key: displayKey(entry.keys[0] ?? ""),
|
|
14644
14662
|
hint: hintOf(entry, offered),
|
|
14645
14663
|
press: entry.keys[0] ?? ""
|
|
@@ -14683,7 +14701,7 @@ var init_match = __esmMin((() => {
|
|
|
14683
14701
|
}));
|
|
14684
14702
|
//#endregion
|
|
14685
14703
|
//#region src/tui/reduce.ts
|
|
14686
|
-
var clamp, lastRow, rowsIn, withCursorVisible, moveCursor, stepStop, scrolled, restingOn, draggedTo, pickedIn, atRow, noneLeft, layerHunk, nextFileWithComments, atComment, nothingOpen, layerComment, PAN_STEP, panned, moveLayer, inRail, railScrolled, movePanel, layerDown, stepsToEnd, toTop, farOff, byHalf, boundedStep, PANEL_FAR, PANES, panesShown, focusStepped, togglePanel, packedAway, zoom, toggleRail, foldDirectory, foldLayer, foldThread, fold, moveBranch, landingOn, revealing, atTheEnd, moveFile, selectHunk, swapEnds, atBranch, grownBy, startSelection, draftMark, openCompose, outOfDiff, goBack, walkMatches, openPalette, openKeys, movePalette, paletteMatches, keyMatches, offered, paletteChoice, transitions, reduce, resumedAt, atFile, withContext, withFull, allRevealed, revealsAfter, gapShown, gapOpened, panBy, withSent, withArrived, withColumns, laidOver, onLayerHolding, withLayers, withPulls, withSilentForge, withBranches, withSource, withVouched, restoredTo, openedAt, withPatches, TAB_WIDTH, SPACE_CODE, ERASED_FROM, ERASED_TO, readable, legible, withDraft, paletteMoved, paletteClosed, withWaiting, withFinder, withMatches, withNoticeHere, withNotice;
|
|
14704
|
+
var clamp, lastRow, rowsIn, withCursorVisible, moveCursor, stepStop, scrolled, restingOn, draggedTo, pickedIn, atRow, noneLeft, layerHunk, nextFileWithComments, atComment, nothingOpen, layerComment, PAN_STEP, panned, moveLayer, inRail, railScrolled, movePanel, layerDown, stepsToEnd, toTop, farOff, byHalf, boundedStep, PANEL_FAR, PANES, paneShown, panesShown, focusStepped, togglePanel, toggleNav, packedAway, zoom, toggleRail, foldDirectory, foldLayer, foldThread, fold, moveBranch, landingOn, revealing, atTheEnd, moveFile, selectHunk, swapEnds, atBranch, grownBy, startSelection, draftMark, openCompose, outOfDiff, goBack, walkMatches, openPalette, openKeys, movePalette, paletteMatches, keyMatches, offered, paletteChoice, transitions, reduce, resumedAt, atFile, withContext, withFull, allRevealed, revealsAfter, gapShown, gapOpened, panBy, withSent, withArrived, withColumns, laidOver, onLayerHolding, withLayers, withPulls, withSilentForge, withBranches, withSource, withVouched, restoredTo, openedAt, withPatches, TAB_WIDTH, SPACE_CODE, ERASED_FROM, ERASED_TO, readable, legible, withDraft, paletteMoved, paletteClosed, withWaiting, withFinder, withMatches, withNoticeHere, withNotice;
|
|
14687
14705
|
var init_reduce = __esmMin((() => {
|
|
14688
14706
|
init_dist();
|
|
14689
14707
|
init_patch();
|
|
@@ -14897,7 +14915,12 @@ var init_reduce = __esmMin((() => {
|
|
|
14897
14915
|
"diff",
|
|
14898
14916
|
"review"
|
|
14899
14917
|
];
|
|
14900
|
-
|
|
14918
|
+
paneShown = (state, pane) => {
|
|
14919
|
+
if (pane === "review") return panelShown(state);
|
|
14920
|
+
if (pane === "tree") return state.navOpen;
|
|
14921
|
+
return true;
|
|
14922
|
+
};
|
|
14923
|
+
panesShown = (state) => PANES.filter((pane) => paneShown(state, pane));
|
|
14901
14924
|
focusStepped = (state, delta) => {
|
|
14902
14925
|
const shown = panesShown(state);
|
|
14903
14926
|
const at = shown.indexOf(state.focus);
|
|
@@ -14922,6 +14945,17 @@ var init_reduce = __esmMin((() => {
|
|
|
14922
14945
|
panelIndex: 0
|
|
14923
14946
|
};
|
|
14924
14947
|
};
|
|
14948
|
+
toggleNav = (state) => {
|
|
14949
|
+
if (state.navOpen) return {
|
|
14950
|
+
...state,
|
|
14951
|
+
navOpen: false,
|
|
14952
|
+
focus: state.focus === "tree" ? "diff" : state.focus
|
|
14953
|
+
};
|
|
14954
|
+
return {
|
|
14955
|
+
...state,
|
|
14956
|
+
navOpen: true
|
|
14957
|
+
};
|
|
14958
|
+
};
|
|
14925
14959
|
packedAway = (state) => !state.navOpen && !state.panelOpen;
|
|
14926
14960
|
zoom = (state) => packedAway(state) ? {
|
|
14927
14961
|
...state,
|
|
@@ -15172,15 +15206,14 @@ var init_reduce = __esmMin((() => {
|
|
|
15172
15206
|
"thread.reply": (state) => state,
|
|
15173
15207
|
"focus.toggle": (state) => ({
|
|
15174
15208
|
...state,
|
|
15175
|
-
focus: focusStepped(state, 1)
|
|
15176
|
-
navOpen: true
|
|
15209
|
+
focus: focusStepped(state, 1)
|
|
15177
15210
|
}),
|
|
15178
15211
|
"focus.back": (state) => ({
|
|
15179
15212
|
...state,
|
|
15180
|
-
focus: focusStepped(state, -1)
|
|
15181
|
-
navOpen: true
|
|
15213
|
+
focus: focusStepped(state, -1)
|
|
15182
15214
|
}),
|
|
15183
15215
|
"panel.toggle": togglePanel,
|
|
15216
|
+
"nav.toggle": toggleNav,
|
|
15184
15217
|
"nav.zoom": zoom,
|
|
15185
15218
|
"wrap.toggle": (state) => ({
|
|
15186
15219
|
...state,
|
|
@@ -16259,7 +16292,7 @@ var init_diffview = __esmMin((() => {
|
|
|
16259
16292
|
prose: false
|
|
16260
16293
|
}));
|
|
16261
16294
|
proseRows = (entry, row, room) => [...entry.markdown.split("\n").flatMap((line) => wrap(line, room - 2)), ""].map((line) => ({
|
|
16262
|
-
text: line.length === 0 ?
|
|
16295
|
+
text: line.length === 0 ? marks().rule : `${marks().rule} ${line}`,
|
|
16263
16296
|
row,
|
|
16264
16297
|
stop: 0,
|
|
16265
16298
|
comment: false,
|
|
@@ -17056,7 +17089,7 @@ var init_render = __esmMin((() => {
|
|
|
17056
17089
|
pullHere(state).length === 0 ? "" : `${pullHere(state)} pull request`,
|
|
17057
17090
|
state.vouched.length === 0 ? "" : reviewedCount(state),
|
|
17058
17091
|
contextLabel(state.context),
|
|
17059
|
-
state.layersStale ? "layers stale" : "",
|
|
17092
|
+
state.layersStale ? "layers stale · L for a new one" : "",
|
|
17060
17093
|
hiddenLines(state) === 0 ? "" : `⋯ ${hiddenLines(state)} ${hiddenLines(state) === 1 ? "line" : "lines"} hidden`,
|
|
17061
17094
|
panLabel(state, across)
|
|
17062
17095
|
];
|
|
@@ -17508,6 +17541,7 @@ var init_render = __esmMin((() => {
|
|
|
17508
17541
|
reviewed: reviewedCountIn(state),
|
|
17509
17542
|
pull: pullHere(state).length > 0,
|
|
17510
17543
|
pane: state.screen === "review" ? state.focus : "diff",
|
|
17544
|
+
stale: state.layersStale,
|
|
17511
17545
|
onLayers: onLayers(state),
|
|
17512
17546
|
hidingRead: state.hideReviewed,
|
|
17513
17547
|
hidingSettled: state.hideSettled,
|
|
@@ -18281,6 +18315,7 @@ var init_app = __esmMin((() => {
|
|
|
18281
18315
|
sideways = 0;
|
|
18282
18316
|
listening;
|
|
18283
18317
|
lighting;
|
|
18318
|
+
sourcing;
|
|
18284
18319
|
constructor(options) {
|
|
18285
18320
|
this.renderer = options.renderer;
|
|
18286
18321
|
this.repo = options.repo;
|
|
@@ -18313,6 +18348,7 @@ var init_app = __esmMin((() => {
|
|
|
18313
18348
|
renderer.on("destroy", () => this.stopTicking());
|
|
18314
18349
|
this.startTicking();
|
|
18315
18350
|
renderer.on("destroy", () => this.stopLighting());
|
|
18351
|
+
renderer.on("destroy", () => this.stopSourcing());
|
|
18316
18352
|
renderer.on("destroy", () => void getTreeSitterClient().destroy());
|
|
18317
18353
|
renderer.on("destroy", () => this.stopPainting());
|
|
18318
18354
|
renderer.on("destroy", () => this.stopConsuming());
|
|
@@ -18446,7 +18482,11 @@ var init_app = __esmMin((() => {
|
|
|
18446
18482
|
}
|
|
18447
18483
|
settled() {
|
|
18448
18484
|
if (this.consuming === void 0) return Promise.resolve();
|
|
18449
|
-
return runPromise(andThen(this.drained(), this.stillLighting()));
|
|
18485
|
+
return runPromise(andThen(andThen(this.drained(), suspend(() => this.stillSourcing())), suspend(() => this.stillLighting())));
|
|
18486
|
+
}
|
|
18487
|
+
stillSourcing() {
|
|
18488
|
+
const fiber = this.sourcing;
|
|
18489
|
+
return fiber === void 0 ? void_ : asVoid(await_(fiber));
|
|
18450
18490
|
}
|
|
18451
18491
|
stillLighting() {
|
|
18452
18492
|
const fiber = this.lighting;
|
|
@@ -18973,7 +19013,7 @@ var init_app = __esmMin((() => {
|
|
|
18973
19013
|
...this.state,
|
|
18974
19014
|
opened: this.state.opened.filter((one) => one !== id)
|
|
18975
19015
|
}, sent);
|
|
18976
|
-
this.commit(withNotice(this.staying(held,
|
|
19016
|
+
this.commit(withNotice(this.staying(held, was), "settled"));
|
|
18977
19017
|
});
|
|
18978
19018
|
}
|
|
18979
19019
|
replyHere() {
|
|
@@ -18991,13 +19031,11 @@ var init_app = __esmMin((() => {
|
|
|
18991
19031
|
});
|
|
18992
19032
|
});
|
|
18993
19033
|
}
|
|
18994
|
-
staying(state,
|
|
18995
|
-
const
|
|
18996
|
-
const last = Math.max(0, entries.length - 1);
|
|
18997
|
-
const at = entries.findIndex((entry) => entry.comment.id === id);
|
|
19034
|
+
staying(state, was) {
|
|
19035
|
+
const last = Math.max(0, panelEntries(state).length - 1);
|
|
18998
19036
|
return {
|
|
18999
19037
|
...state,
|
|
19000
|
-
panelIndex: Math.min(
|
|
19038
|
+
panelIndex: Math.min(was, last)
|
|
19001
19039
|
};
|
|
19002
19040
|
}
|
|
19003
19041
|
removeHere() {
|
|
@@ -19022,7 +19060,7 @@ var init_app = __esmMin((() => {
|
|
|
19022
19060
|
opened: this.state.opened.filter((one) => one !== id)
|
|
19023
19061
|
};
|
|
19024
19062
|
const said = back ? "restored" : "removed, it is under Removed in the review";
|
|
19025
|
-
this.commit(withNotice(this.staying(withSent(kept, sent),
|
|
19063
|
+
this.commit(withNotice(this.staying(withSent(kept, sent), was), said));
|
|
19026
19064
|
});
|
|
19027
19065
|
}
|
|
19028
19066
|
fillBranches() {
|
|
@@ -19250,9 +19288,15 @@ var init_app = __esmMin((() => {
|
|
|
19250
19288
|
turnedTo() {
|
|
19251
19289
|
return gen({ self: this }, function* () {
|
|
19252
19290
|
this.commit(withSource(this.state, []));
|
|
19253
|
-
|
|
19291
|
+
this.stopSourcing();
|
|
19292
|
+
this.sourcing = yield* forkDetach(this.loadSource());
|
|
19254
19293
|
});
|
|
19255
19294
|
}
|
|
19295
|
+
stopSourcing() {
|
|
19296
|
+
const fiber = this.sourcing;
|
|
19297
|
+
this.sourcing = void 0;
|
|
19298
|
+
if (fiber !== void 0) runFork(interrupt(fiber));
|
|
19299
|
+
}
|
|
19256
19300
|
loadSource() {
|
|
19257
19301
|
return gen({ self: this }, function* () {
|
|
19258
19302
|
const branch = selectedBranch(this.state);
|
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.138",
|
|
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": {
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"serve": "node --experimental-ffi --disable-warning=ExperimentalWarning scripts/serve.ts",
|
|
56
56
|
"play": "node --watch --watch-path=src --watch-path=scripts --experimental-ffi --disable-warning=ExperimentalWarning scripts/play.ts",
|
|
57
57
|
"shot": "node --experimental-ffi --disable-warning=ExperimentalWarning scripts/shot.ts",
|
|
58
|
-
"pr-summary": "node scripts/pr-summary.ts"
|
|
58
|
+
"pr-summary": "node scripts/pr-summary.ts",
|
|
59
|
+
"scenario": "node --experimental-ffi --disable-warning=ExperimentalWarning scripts/scenario.ts"
|
|
59
60
|
}
|
|
60
61
|
}
|