@eliya-oss/agent-diff 0.1.0-alpha.83 → 0.1.0-alpha.85
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 +12 -0
- package/dist/main.js +41 -16
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.85
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Page Up, Page Down, Home and End now move through a diff, doing what ctrl+u, ctrl+d, g and G already did.
|
|
8
|
+
|
|
9
|
+
## 0.1.0-alpha.84
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- The count in the header follows the order `[` and `]` move in, so it steps by one instead of jumping about, and a branch named on the command line opens at the top of its tree rather than partway down it.
|
|
14
|
+
|
|
3
15
|
## 0.1.0-alpha.83
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -9804,7 +9804,7 @@ var init_pane = __esmMin((() => {
|
|
|
9804
9804
|
init_commands();
|
|
9805
9805
|
init_init();
|
|
9806
9806
|
init_pane();
|
|
9807
|
-
var version$1 = "0.1.0-alpha.
|
|
9807
|
+
var version$1 = "0.1.0-alpha.85";
|
|
9808
9808
|
//#endregion
|
|
9809
9809
|
//#region src/cli/upgrade.ts
|
|
9810
9810
|
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;
|
|
@@ -11584,7 +11584,7 @@ var init_tree = __esmMin((() => {
|
|
|
11584
11584
|
return node.children.reduce((total, child) => total + filesUnder(tree, child), 0);
|
|
11585
11585
|
};
|
|
11586
11586
|
crowdedDirectories = (tree, limit) => tree.nodes.filter((node) => node.kind === "directory" && directFiles(tree, node.id) > limit).map((node) => node.path);
|
|
11587
|
-
})), nothingReviewed, initialState, TREE_MAX, TREE_ROOMY, TREE_MIN, TREE_SHARE, DIFF_MIN, DIFF_ROOMY, bodyRoom, treeWidth, reviewWidth, panelFits, panelShown, onLayers, selectedLayer, proseFor, layerFiles, layerHolding, layerOpen, chunked, packed, shortened, wordWrapped, wrapped, NO_NOTE, noteRows$1, proseRow, proseRows$1, titleRows, clipEnd, FILE_LEAD, fileRows, layerRows, railWindow, selectedBranch, selectedPatch, pullHere, knownToHaveNoPull, kept, treeOf, reviewedCountIn, treeRows, crowdedOf, foldersOfFile, isReviewed, treeStart, treeWindow, commentsOn, hiddenLines, markedRows, carriesLine, selectedRows, snippetOf, selectedLineCount, lineOf, brokenAt, laidLine, laidDraft, caretRow, caretColumn, caretOn, COMPOSE_BOX, COMPOSE_MARGIN, COMPOSE_PAD, COMPOSE_LEAST, composeBox, composeRoom$1, composeTarget, replyTarget, pickedText, selectedLines, KEYWORDS, NAME, longestName$1, searchTerm, matchHere, selectionReadout, WHOLE_FILE, CONTEXT_STEPS, wholeFileOff, contextToggled, layerContext, newLineAt, sourceLineAt, rowAtSourceLine, rowShowing, lineOnSide, commentRowsIn, threadsAtRow, stopsAtRow, threadAtStop, threadAtRow, openCommentRows, filesWithComments, answerCount, answersIn, newerOf, spokeLast, sectionOf, sentEntry, panelEntries, panelIndexOf, panelEntry, threadChosen, spokenSince, hunkStarts, openingRow, changeAround, nextUnreviewed, reviewedCount, fileOrder, layerFile, selectionRange;
|
|
11587
|
+
})), nothingReviewed, initialState, TREE_MAX, TREE_ROOMY, TREE_MIN, TREE_SHARE, DIFF_MIN, DIFF_ROOMY, bodyRoom, treeWidth, reviewWidth, panelFits, panelShown, onLayers, selectedLayer, proseFor, layerFiles, layerHolding, layerOpen, chunked, packed, shortened, wordWrapped, wrapped, NO_NOTE, noteRows$1, proseRow, proseRows$1, titleRows, clipEnd, FILE_LEAD, fileRows, layerRows, railWindow, selectedBranch, selectedPatch, pullHere, knownToHaveNoPull, kept, treeOf, reviewedCountIn, treeRows, crowdedOf, foldersOfFile, isReviewed, treeStart, treeWindow, commentsOn, hiddenLines, markedRows, carriesLine, selectedRows, snippetOf, selectedLineCount, lineOf, brokenAt, laidLine, laidDraft, caretRow, caretColumn, caretOn, COMPOSE_BOX, COMPOSE_MARGIN, COMPOSE_PAD, COMPOSE_LEAST, composeBox, composeRoom$1, composeTarget, replyTarget, pickedText, selectedLines, KEYWORDS, NAME, longestName$1, searchTerm, matchHere, selectionReadout, WHOLE_FILE, CONTEXT_STEPS, wholeFileOff, contextToggled, layerContext, newLineAt, sourceLineAt, rowAtSourceLine, rowShowing, lineOnSide, commentRowsIn, threadsAtRow, stopsAtRow, threadAtStop, threadAtRow, openCommentRows, filesWithComments, answerCount, answersIn, newerOf, spokeLast, sectionOf, sentEntry, panelEntries, panelIndexOf, panelEntry, threadChosen, spokenSince, hunkStarts, openingRow, changeAround, nextUnreviewed, reviewedCount, fileOrder, filePlace, layerFile, selectionRange;
|
|
11588
11588
|
var init_model = __esmMin((() => {
|
|
11589
11589
|
init_dist();
|
|
11590
11590
|
init_patch();
|
|
@@ -12126,6 +12126,18 @@ var init_model = __esmMin((() => {
|
|
|
12126
12126
|
};
|
|
12127
12127
|
reviewedCount = (state) => `${state.vouched.length}/${state.patches.length} reviewed`;
|
|
12128
12128
|
fileOrder = (state) => onLayers(state) ? layerFiles(state, state.layerIndex) : flattenTree(treeOf(state), []).flatMap((row) => row.fileIndex === void 0 ? [] : [row.fileIndex]);
|
|
12129
|
+
filePlace = (state) => {
|
|
12130
|
+
const order = fileOrder(state);
|
|
12131
|
+
const at = order.indexOf(state.patchIndex);
|
|
12132
|
+
if (at === -1) return {
|
|
12133
|
+
at: state.patchIndex + 1,
|
|
12134
|
+
of: state.patches.length
|
|
12135
|
+
};
|
|
12136
|
+
return {
|
|
12137
|
+
at: at + 1,
|
|
12138
|
+
of: order.length
|
|
12139
|
+
};
|
|
12140
|
+
};
|
|
12129
12141
|
layerFile = (state, delta) => {
|
|
12130
12142
|
const order = fileOrder(state);
|
|
12131
12143
|
const position = order.indexOf(state.patchIndex);
|
|
@@ -12307,28 +12319,28 @@ var init_command = __esmMin((() => {
|
|
|
12307
12319
|
action: "cursor.top",
|
|
12308
12320
|
category: "Moving",
|
|
12309
12321
|
title: "Go to first line",
|
|
12310
|
-
keys: ["g"],
|
|
12322
|
+
keys: ["g", "home"],
|
|
12311
12323
|
screens: ["review"]
|
|
12312
12324
|
}),
|
|
12313
12325
|
command({
|
|
12314
12326
|
action: "cursor.bottom",
|
|
12315
12327
|
category: "Moving",
|
|
12316
12328
|
title: "Go to last line",
|
|
12317
|
-
keys: ["G"],
|
|
12329
|
+
keys: ["G", "end"],
|
|
12318
12330
|
screens: ["review"]
|
|
12319
12331
|
}),
|
|
12320
12332
|
command({
|
|
12321
12333
|
action: "cursor.pageDown",
|
|
12322
12334
|
category: "Moving",
|
|
12323
12335
|
title: "Half page down",
|
|
12324
|
-
keys: ["ctrl+d"],
|
|
12336
|
+
keys: ["ctrl+d", "pagedown"],
|
|
12325
12337
|
screens: ["review"]
|
|
12326
12338
|
}),
|
|
12327
12339
|
command({
|
|
12328
12340
|
action: "cursor.pageUp",
|
|
12329
12341
|
category: "Moving",
|
|
12330
12342
|
title: "Half page up",
|
|
12331
|
-
keys: ["ctrl+u"],
|
|
12343
|
+
keys: ["ctrl+u", "pageup"],
|
|
12332
12344
|
screens: ["review"]
|
|
12333
12345
|
}),
|
|
12334
12346
|
command({
|
|
@@ -14380,7 +14392,7 @@ var init_diffview = __esmMin((() => {
|
|
|
14380
14392
|
}));
|
|
14381
14393
|
//#endregion
|
|
14382
14394
|
//#region src/tui/render.ts
|
|
14383
|
-
var ROW_HEIGHT, COMPOSE_WIDTH, GUTTER_X, CHIP_GAP, FRAME_PAD, MODAL_ROOM, COMPOSE_CHROME, COMPOSE_ACTION_ROWS, reportActions, actionsText, SNIPPET_LINES, PALETTE_KEY, PALETTE_TITLE, PALETTE_GAP, PALETTE_CHROME, PENDING_CHROME, PALETTE_WIDTH, PANEL_SHARE, PANEL_MAX, PANEL_FLOOR, PANEL_FOOT, PANEL_QUARTER, PANEL_FIFTH, PANE_CHROME, PANE_EDGES, PANE_INSET, BRANCH_WIDTH, BRANCH_NAME_MIN, BRANCH_TAIL, EMPTY_LIST, MODAL_MARGIN, shareOf, homeWidth, longestName, commandRow, modalWidth, panelWidth, panelTop, panelRows, composeRoom, laidOut$1, STICKY_MAX, pickPaint, SELECTION, CURSOR, ACCENT, GAP_PAINT, bar, makeList, makeDiffPane, makePanel, makeListParts, makeListText, makeGutter, makeScroller, makeScrim, makeScroll, makePalette, asking, makePaletteParts, makeChoices, LIST_LEAD, windowed, listText, stack, makeBody, makeHome, makeModals, makeKeysParts, makeFoundParts, FONTS, logoFont, makeLanding, makeLogo, MAC_KEYS, makeComposeParts, makeCompose, clip, clipHead, clipMiddle, clipPath, INDENT_MAX, treeLabel, waitingLabel, inRange, notesOf, notesFor, paired, keptWithin, CHIP_CHUNKS, shortPath, HOME_PATH_MIN, HOME_PATH_CHROME, elide, contextLabel, nameRoom, columns, FORGE_SILENT, unaskedForge, branchHeading, atHome, layersCell, baseLabel, stateCell, branchCells, headerParts, HEADER_GAP, HEADER_PATH_MIN, headerRoom, headerFitted, fallbackScope, treeMarks, treeTail, treeLine, STEP_NUMBER, STEP_LEAD, NOTE_LEAD, STEP_GAP, STALE_ROOM, STALE_LONG, STALE_SHORT, staleBanner, layerRoom, layerFold, layerHead, layerText, layerPaint, PANEL_TITLES, PANEL_ORDER, PANEL_LEAD, PANEL_EMPTY, panelMark, panelWhere, panelBody, panelPair, panelSection, PULL_HINT, panelText, Screen;
|
|
14395
|
+
var ROW_HEIGHT, COMPOSE_WIDTH, GUTTER_X, CHIP_GAP, FRAME_PAD, MODAL_ROOM, COMPOSE_CHROME, COMPOSE_ACTION_ROWS, reportActions, actionsText, SNIPPET_LINES, PALETTE_KEY, PALETTE_TITLE, PALETTE_GAP, PALETTE_CHROME, PENDING_CHROME, PALETTE_WIDTH, PANEL_SHARE, PANEL_MAX, PANEL_FLOOR, PANEL_FOOT, PANEL_QUARTER, PANEL_FIFTH, PANE_CHROME, PANE_EDGES, PANE_INSET, BRANCH_WIDTH, BRANCH_NAME_MIN, BRANCH_TAIL, EMPTY_LIST, MODAL_MARGIN, shareOf, homeWidth, longestName, commandRow, modalWidth, panelWidth, panelTop, panelRows, composeRoom, laidOut$1, STICKY_MAX, pickPaint, SELECTION, CURSOR, ACCENT, GAP_PAINT, bar, makeList, makeDiffPane, makePanel, makeListParts, makeListText, makeGutter, makeScroller, makeScrim, makeScroll, makePalette, asking, makePaletteParts, makeChoices, LIST_LEAD, windowed, listText, stack, makeBody, makeHome, makeModals, makeKeysParts, makeFoundParts, FONTS, logoFont, makeLanding, makeLogo, MAC_KEYS, makeComposeParts, makeCompose, clip, clipHead, clipMiddle, clipPath, INDENT_MAX, treeLabel, waitingLabel, inRange, notesOf, notesFor, paired, keptWithin, CHIP_CHUNKS, shortPath, HOME_PATH_MIN, HOME_PATH_CHROME, elide, contextLabel, nameRoom, columns, FORGE_SILENT, unaskedForge, branchHeading, atHome, layersCell, baseLabel, stateCell, branchCells, placeLabel, headerParts, HEADER_GAP, HEADER_PATH_MIN, headerRoom, headerFitted, fallbackScope, treeMarks, treeTail, treeLine, STEP_NUMBER, STEP_LEAD, NOTE_LEAD, STEP_GAP, STALE_ROOM, STALE_LONG, STALE_SHORT, staleBanner, layerRoom, layerFold, layerHead, layerText, layerPaint, PANEL_TITLES, PANEL_ORDER, PANEL_LEAD, PANEL_EMPTY, panelMark, panelWhere, panelBody, panelPair, panelSection, PULL_HINT, panelText, Screen;
|
|
14384
14396
|
var init_render = __esmMin((() => {
|
|
14385
14397
|
init_command();
|
|
14386
14398
|
init_patch();
|
|
@@ -14926,10 +14938,14 @@ var init_render = __esmMin((() => {
|
|
|
14926
14938
|
layers: layersCell(branch),
|
|
14927
14939
|
state: ""
|
|
14928
14940
|
});
|
|
14941
|
+
placeLabel = (state) => {
|
|
14942
|
+
const place = filePlace(state);
|
|
14943
|
+
return `${place.at}/${place.of}`;
|
|
14944
|
+
};
|
|
14929
14945
|
headerParts = (state, branch, path, pan) => [
|
|
14930
14946
|
branch,
|
|
14931
14947
|
path,
|
|
14932
|
-
state.patches.length === 0 ? "nothing to read" :
|
|
14948
|
+
state.patches.length === 0 ? "nothing to read" : placeLabel(state),
|
|
14933
14949
|
pullHere(state).length === 0 ? "" : `${pullHere(state)} pull request`,
|
|
14934
14950
|
state.vouched.length === 0 ? "" : reviewedCount(state),
|
|
14935
14951
|
contextLabel(state.context),
|
|
@@ -15942,8 +15958,10 @@ var init_app = __esmMin((() => {
|
|
|
15942
15958
|
renderer.on("frame", () => this.syncGeometry());
|
|
15943
15959
|
renderer.setFrameCallback(() => runPromise(this.applying()));
|
|
15944
15960
|
const resume = options.resume;
|
|
15961
|
+
const opensOn = options.opensOn;
|
|
15945
15962
|
this.dispatchTask(this.loadPulls());
|
|
15946
|
-
if (
|
|
15963
|
+
if (opensOn !== void 0) this.dispatchTask(this.openedOn(opensOn));
|
|
15964
|
+
else if (resume !== void 0) this.dispatchTask(this.resume(resume));
|
|
15947
15965
|
if (options.partial === true) this.dispatchTask(this.fillBranches());
|
|
15948
15966
|
}
|
|
15949
15967
|
listen(fiber) {
|
|
@@ -15989,6 +16007,17 @@ var init_app = __esmMin((() => {
|
|
|
15989
16007
|
Ping: ({ done }) => asVoid(succeed$3(done, void 0))
|
|
15990
16008
|
});
|
|
15991
16009
|
}
|
|
16010
|
+
openedOn(branchIndex) {
|
|
16011
|
+
return gen({ self: this }, function* () {
|
|
16012
|
+
if (branchIndex >= this.state.branches.length) return;
|
|
16013
|
+
this.write({
|
|
16014
|
+
...this.state,
|
|
16015
|
+
branchIndex
|
|
16016
|
+
});
|
|
16017
|
+
yield* this.openBranch();
|
|
16018
|
+
yield* this.loadSource();
|
|
16019
|
+
});
|
|
16020
|
+
}
|
|
15992
16021
|
resume(session) {
|
|
15993
16022
|
return gen({ self: this }, function* () {
|
|
15994
16023
|
const branches = this.state.branches;
|
|
@@ -16840,12 +16869,7 @@ var init_app = __esmMin((() => {
|
|
|
16840
16869
|
openingOn = (branches, branch) => {
|
|
16841
16870
|
if (branch === void 0) return none();
|
|
16842
16871
|
const at = branches.findIndex((candidate) => candidate.branch === branch);
|
|
16843
|
-
return at === -1 ? none() : some(
|
|
16844
|
-
branchIndex: at,
|
|
16845
|
-
patchIndex: 0,
|
|
16846
|
-
cursor: 0,
|
|
16847
|
-
top: 0
|
|
16848
|
-
});
|
|
16872
|
+
return at === -1 ? none() : some(at);
|
|
16849
16873
|
};
|
|
16850
16874
|
launch = fn("Tui.launch")(function* (asked, renderer, options = {}) {
|
|
16851
16875
|
const { noticeMs, sessionPath } = options;
|
|
@@ -16853,7 +16877,7 @@ var init_app = __esmMin((() => {
|
|
|
16853
16877
|
const branches = yield* firstBranches(repo, options.branch);
|
|
16854
16878
|
const asOpened = openingOn(branches, options.branch);
|
|
16855
16879
|
const missed = missing(options.branch, asOpened);
|
|
16856
|
-
const resume = isSome(asOpened) ?
|
|
16880
|
+
const resume = isSome(asOpened) ? none() : sessionPath === void 0 ? none() : yield* readSession(sessionPath);
|
|
16857
16881
|
const store = yield* Store;
|
|
16858
16882
|
const kept = yield* settingsHeld;
|
|
16859
16883
|
const display = yield* Display.pipe(provide(displayOn(renderer, repo)));
|
|
@@ -16876,6 +16900,7 @@ var init_app = __esmMin((() => {
|
|
|
16876
16900
|
noticeMs,
|
|
16877
16901
|
sessionPath,
|
|
16878
16902
|
resume: getOrUndefined$1(resume),
|
|
16903
|
+
opensOn: getOrUndefined$1(asOpened),
|
|
16879
16904
|
wrap: kept.wrap,
|
|
16880
16905
|
sticky: kept.sticky,
|
|
16881
16906
|
partial,
|
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.85",
|
|
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": {
|