@eliya-oss/agent-diff 0.1.0-alpha.176 → 0.1.0-alpha.177
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 +13 -0
- package/dist/main.js +15 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.177
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat(review): `]` on the last file comes around to the first, `[` on the first to the last, and `j`/`k` in the file list do the same.
|
|
8
|
+
|
|
9
|
+
<details><summary>What was wrong</summary>
|
|
10
|
+
|
|
11
|
+
The walk stopped at either end, so getting from the last file back to the first meant pressing `[`
|
|
12
|
+
once per file. The footer says `around to the first file` when the walk wraps.
|
|
13
|
+
|
|
14
|
+
</details>
|
|
15
|
+
|
|
3
16
|
## 0.1.0-alpha.176
|
|
4
17
|
|
|
5
18
|
### 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.177";
|
|
10031
10031
|
//#endregion
|
|
10032
10032
|
//#region src/cli/error.ts
|
|
10033
10033
|
var UnknownCommand, MissingOption, UnknownField, UnknownOption, BadOption, RegistryUnanswered;
|
|
@@ -17389,7 +17389,7 @@ var init_notes = __esmMin((() => {
|
|
|
17389
17389
|
}));
|
|
17390
17390
|
//#endregion
|
|
17391
17391
|
//#region src/tui/reduce.ts
|
|
17392
|
-
var clamp, lastRow, rowsIn, withCursorVisible, moveCursor, stepStop, scrolled, restingOn, draggedTo, pickedIn, atRow, noneLeft, layerHunk, nextFileWithComments, atComment, nothingOpen, layerComment, PAN_STEP, panned, atLayer, moveLayer, inRail, railScrolled, movePanel, layerDown, stepsToEnd, toTop, farOff, byHalf, boundedStep, PANEL_FAR, PANES, paneShown, panesShown, focusStepped, togglePanel, toggleNav, packedAway, zoom, toggleRail, foldDirectory, foldLayer, foldThread, foldMoved, overFold, readingThread, overThread, fold, moveBranch, landingOn, revealing, atTheEnd, moveFile$1, selectHunk, swapEnds, atBranch, grownBy, startSelection, draftMark, openCompose, outOfDiff, BACK_FROM, goBack$1, walkMatches$1, openPalette, openKeys, openSettings, moveSettings, flipSetting, moveAsk, moveRef, withChoices, withRefs, movePalette, paletteMatches, keyMatches, offered, paletteChoice, transitions, reduce, resumedAt, atFile, withContext, withFull, allRevealed, revealsAfter, gapShown, gapOpened, panBy, withRemarks, 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, withAround, withNoticeHere, withNotice;
|
|
17392
|
+
var clamp, lastRow, rowsIn, withCursorVisible, moveCursor, stepStop, scrolled, restingOn, draggedTo, pickedIn, atRow, noneLeft, layerHunk, nextFileWithComments, atComment, nothingOpen, layerComment, PAN_STEP, panned, atLayer, moveLayer, inRail, railScrolled, movePanel, layerDown, stepsToEnd, toTop, farOff, byHalf, boundedStep, PANEL_FAR, PANES, paneShown, panesShown, focusStepped, togglePanel, toggleNav, packedAway, zoom, toggleRail, foldDirectory, foldLayer, foldThread, foldMoved, overFold, readingThread, overThread, fold, moveBranch, landingOn, revealing, atTheEnd, aroundTheEnd, CAME_AROUND, moveFile$1, selectHunk, swapEnds, atBranch, grownBy, startSelection, draftMark, openCompose, outOfDiff, BACK_FROM, goBack$1, walkMatches$1, openPalette, openKeys, openSettings, moveSettings, flipSetting, moveAsk, moveRef, withChoices, withRefs, movePalette, paletteMatches, keyMatches, offered, paletteChoice, transitions, reduce, resumedAt, atFile, withContext, withFull, allRevealed, revealsAfter, gapShown, gapOpened, panBy, withRemarks, 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, withAround, withNoticeHere, withNotice;
|
|
17393
17393
|
var init_reduce = __esmMin((() => {
|
|
17394
17394
|
init_dist();
|
|
17395
17395
|
init_patch();
|
|
@@ -17775,13 +17775,22 @@ var init_reduce = __esmMin((() => {
|
|
|
17775
17775
|
const wanted = at + delta;
|
|
17776
17776
|
return at !== -1 && (wanted < 0 || wanted >= readingOrder(state).length);
|
|
17777
17777
|
};
|
|
17778
|
+
aroundTheEnd = (state, delta) => {
|
|
17779
|
+
const at = placeIn(state);
|
|
17780
|
+
return delta > 0 ? -at : readingOrder(state).length - 1 - at;
|
|
17781
|
+
};
|
|
17782
|
+
CAME_AROUND = {
|
|
17783
|
+
forward: "around to the first file",
|
|
17784
|
+
back: "around to the last file"
|
|
17785
|
+
};
|
|
17778
17786
|
moveFile$1 = (state, delta) => {
|
|
17779
|
-
|
|
17780
|
-
const
|
|
17781
|
-
const
|
|
17787
|
+
const around = atTheEnd(state, delta);
|
|
17788
|
+
const step = around ? aroundTheEnd(state, delta) : delta;
|
|
17789
|
+
const next = layerFile(state, step);
|
|
17790
|
+
const layer = onLayers(state) ? layerAfter(state, step) : state.layerIndex;
|
|
17782
17791
|
return {
|
|
17783
17792
|
...state,
|
|
17784
|
-
notice: "",
|
|
17793
|
+
notice: around ? CAME_AROUND[delta > 0 ? "forward" : "back"] : "",
|
|
17785
17794
|
layerIndex: layer,
|
|
17786
17795
|
openLayers: state.openLayers.includes(layer) ? state.openLayers : [...state.openLayers, layer],
|
|
17787
17796
|
closed: revealing(state, next),
|
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.177",
|
|
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": {
|