@eliya-oss/agent-diff 0.1.0-alpha.60 → 0.1.0-alpha.61
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 +6 -0
- package/dist/main.js +38 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.61
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Scrolling reaches the end of a file whose comments fill the screen. The wheel counted lines of code and a long answer is one line of code however tall it is drawn, so anything below it was out of reach. Opening a comment from the panel also leaves the panel where you left it.
|
|
8
|
+
|
|
3
9
|
## 0.1.0-alpha.60
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -9448,7 +9448,7 @@ var init_pane = __esmMin((() => {
|
|
|
9448
9448
|
init_commands();
|
|
9449
9449
|
init_init();
|
|
9450
9450
|
init_pane();
|
|
9451
|
-
var version$1 = "0.1.0-alpha.
|
|
9451
|
+
var version$1 = "0.1.0-alpha.61";
|
|
9452
9452
|
//#endregion
|
|
9453
9453
|
//#region src/cli/upgrade.ts
|
|
9454
9454
|
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, runUpgrade, statusOf$1, sayFound, sayDone, attempted, REFRESH_MS, refreshSkills, updatedIn, sayRefreshed, upgradeReport;
|
|
@@ -11235,7 +11235,9 @@ var init_model = __esmMin((() => {
|
|
|
11235
11235
|
panelWas: true,
|
|
11236
11236
|
panelIndex: 0,
|
|
11237
11237
|
columns: 0,
|
|
11238
|
-
reportFull: true
|
|
11238
|
+
reportFull: true,
|
|
11239
|
+
tallest: 0,
|
|
11240
|
+
scroll: -1
|
|
11239
11241
|
};
|
|
11240
11242
|
initialState = (branches) => ({
|
|
11241
11243
|
...nothingReviewed,
|
|
@@ -12412,6 +12414,7 @@ var init_reduce = __esmMin((() => {
|
|
|
12412
12414
|
const top = state.cursor < state.top ? state.cursor : state.cursor >= state.top + height ? state.cursor - height + 1 : state.top;
|
|
12413
12415
|
return {
|
|
12414
12416
|
...state,
|
|
12417
|
+
scroll: -1,
|
|
12415
12418
|
top: clamp(top, 0, highest)
|
|
12416
12419
|
};
|
|
12417
12420
|
};
|
|
@@ -12443,10 +12446,12 @@ var init_reduce = __esmMin((() => {
|
|
|
12443
12446
|
});
|
|
12444
12447
|
};
|
|
12445
12448
|
scrolled = (state, delta) => {
|
|
12446
|
-
const
|
|
12449
|
+
const height = Math.max(1, state.viewport);
|
|
12450
|
+
const highest = Math.max(0, state.tallest - height);
|
|
12451
|
+
const from = state.scroll === -1 ? state.top : state.scroll;
|
|
12447
12452
|
return {
|
|
12448
12453
|
...state,
|
|
12449
|
-
|
|
12454
|
+
scroll: clamp(from + delta, 0, highest)
|
|
12450
12455
|
};
|
|
12451
12456
|
};
|
|
12452
12457
|
draggedTo = (state, from, to) => ({
|
|
@@ -13581,8 +13586,16 @@ var init_diffview = __esmMin((() => {
|
|
|
13581
13586
|
const line = this.lineOfRow(row);
|
|
13582
13587
|
return line === void 0 ? void 0 : this.visualOf(line);
|
|
13583
13588
|
}
|
|
13584
|
-
|
|
13589
|
+
tallestRows() {
|
|
13590
|
+
return this.tallest();
|
|
13591
|
+
}
|
|
13592
|
+
scrollTo(row, cursor, held = -1) {
|
|
13585
13593
|
const highest = Math.max(0, this.tallest() - this.rows());
|
|
13594
|
+
if (held >= 0) {
|
|
13595
|
+
const settled = Math.max(0, Math.min(highest, held));
|
|
13596
|
+
if (this.code.scrollY !== settled) this.code.scrollY = settled;
|
|
13597
|
+
return settled;
|
|
13598
|
+
}
|
|
13586
13599
|
const wanted = this.visualOfRow(row) ?? row;
|
|
13587
13600
|
const at = this.visualOfRow(cursor);
|
|
13588
13601
|
const kept = at !== void 0 && at >= wanted ? Math.max(wanted, at - this.rows() + 1) : wanted;
|
|
@@ -14540,6 +14553,9 @@ var init_render = __esmMin((() => {
|
|
|
14540
14553
|
noteRoom() {
|
|
14541
14554
|
return this.view.room();
|
|
14542
14555
|
}
|
|
14556
|
+
tallestRows() {
|
|
14557
|
+
return this.view.tallestRows();
|
|
14558
|
+
}
|
|
14543
14559
|
diffRows() {
|
|
14544
14560
|
const edges = this.diffPane.border === true ? PANE_EDGES : 0;
|
|
14545
14561
|
const pane = this.diffPane.height - edges - this.view.pinRows();
|
|
@@ -14694,11 +14710,11 @@ var init_render = __esmMin((() => {
|
|
|
14694
14710
|
this.view.setWrap(state.wrap);
|
|
14695
14711
|
this.view.setPan(state.pan);
|
|
14696
14712
|
this.view.show(patch, notesFor(state, patch.path), gapRowSet(shown), proseFor(state, patch.path));
|
|
14697
|
-
this.paintSticky(state, state.top);
|
|
14698
14713
|
this.view.fit(this.diffRows());
|
|
14699
14714
|
const height = this.view.rows();
|
|
14700
|
-
const top = this.view.scrollTo(state.top, state.cursor);
|
|
14715
|
+
const top = this.view.scrollTo(state.top, state.cursor, state.scroll);
|
|
14701
14716
|
this.lastTop = top;
|
|
14717
|
+
this.paintSticky(state, this.view.rowAt(top));
|
|
14702
14718
|
this.view.paint(this.linePaint(state), top, height);
|
|
14703
14719
|
this.paintGutter(state, top, height);
|
|
14704
14720
|
}
|
|
@@ -14997,6 +15013,7 @@ var init_display = __esmMin((() => {
|
|
|
14997
15013
|
paint: paintWith(screen),
|
|
14998
15014
|
rows: sync(() => screen.viewportRows()),
|
|
14999
15015
|
room: sync(() => screen.noteRoom()),
|
|
15016
|
+
tallest: sync(() => screen.tallestRows()),
|
|
15000
15017
|
columns: sync(() => screen.columns()),
|
|
15001
15018
|
listen: listenWith(screen),
|
|
15002
15019
|
light: (path, side, lines) => lightWith(screen, path, side, lines)
|
|
@@ -15339,6 +15356,14 @@ var init_app = __esmMin((() => {
|
|
|
15339
15356
|
this.commit(withColumns(this.state, columns));
|
|
15340
15357
|
return;
|
|
15341
15358
|
}
|
|
15359
|
+
const tallest = runSync(this.display.tallest);
|
|
15360
|
+
if (tallest !== this.state.tallest) {
|
|
15361
|
+
this.commit({
|
|
15362
|
+
...this.state,
|
|
15363
|
+
tallest
|
|
15364
|
+
});
|
|
15365
|
+
return;
|
|
15366
|
+
}
|
|
15342
15367
|
const room = runSync(this.display.room);
|
|
15343
15368
|
if (room === this.roomed) return;
|
|
15344
15369
|
this.roomed = room;
|
|
@@ -15619,7 +15644,12 @@ var init_app = __esmMin((() => {
|
|
|
15619
15644
|
const branch = selectedBranch(this.state);
|
|
15620
15645
|
if (id === void 0 || branch === void 0) return;
|
|
15621
15646
|
yield* markRead(this.repo, branch.branch, id);
|
|
15622
|
-
|
|
15647
|
+
const held = this.state.panelIndex;
|
|
15648
|
+
const sent = yield* this.loadSent(branch.branch);
|
|
15649
|
+
this.commit({
|
|
15650
|
+
...withSent(this.state, sent),
|
|
15651
|
+
panelIndex: held
|
|
15652
|
+
});
|
|
15623
15653
|
});
|
|
15624
15654
|
}
|
|
15625
15655
|
settleHere() {
|
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.61",
|
|
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": {
|