@eliya-oss/agent-diff 0.1.0-alpha.50 → 0.1.0-alpha.51
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 +26 -15
- 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.51
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- The file list stops ending without saying so. It reserved a row for `… N more` whether or not one was needed, and that row paid for the pane's padding instead, so the count was clipped and the list just stopped. `h` now closes the folder the cursor's file is in and then walks outward one folder per press, with `l` opening them again from the outside in, so a deep tree can be folded down to something that fits.
|
|
8
|
+
|
|
3
9
|
## 0.1.0-alpha.50
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -9230,7 +9230,7 @@ var init_pane = __esmMin((() => {
|
|
|
9230
9230
|
init_commands();
|
|
9231
9231
|
init_init();
|
|
9232
9232
|
init_pane();
|
|
9233
|
-
var version$1 = "0.1.0-alpha.
|
|
9233
|
+
var version$1 = "0.1.0-alpha.51";
|
|
9234
9234
|
//#endregion
|
|
9235
9235
|
//#region src/cli/upgrade.ts
|
|
9236
9236
|
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;
|
|
@@ -10951,7 +10951,7 @@ var init_tree = __esmMin((() => {
|
|
|
10951
10951
|
return node.children.reduce((total, child) => total + filesUnder(tree, child), 0);
|
|
10952
10952
|
};
|
|
10953
10953
|
crowdedDirectories = (tree, limit) => tree.nodes.filter((node) => node.kind === "directory" && directFiles(tree, node.id) > limit).map((node) => node.path);
|
|
10954
|
-
})), nothingReviewed, initialState, BODY_BORDER, TREE_MAX, TREE_MIN, TREE_SHARE, DIFF_MIN, PANEL_WIDTH, 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, treeOf, treeRows, crowdedOf,
|
|
10954
|
+
})), nothingReviewed, initialState, BODY_BORDER, TREE_MAX, TREE_MIN, TREE_SHARE, DIFF_MIN, PANEL_WIDTH, 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, treeOf, treeRows, crowdedOf, foldersOfFile, isReviewed, treeWindow, commentsOn, hiddenLines, markedRows, carriesLine, selectedRows, snippetOf, selectedLineCount, lineOf, caretAt, drafted, WORD, wordLeft, wordRight, caretByWord, lineStart, lineEnd, caretToEdge, editedComment, composeTarget, selectedLines, KEYWORDS, NAME, longestName$1, searchTerm, matchHere, selectionReadout, WHOLE_FILE, CONTEXT_STEPS, wholeFileOff, contextToggled, layerContext, newLineAt, sourceLineAt, rowAtSourceLine, lineOnSide, commentRowsIn, threadsAtRow, stopsAtRow, threadAtStop, threadAtRow, openCommentRows, filesWithComments, answerCount, answersIn, newerOf, sectionOf, sentEntry, panelEntries, panelEntry, spokenSince, hunkStarts, changeAround, nextUnreviewed, reviewedCount, fileOrder, layerFile, selectionRange;
|
|
10955
10955
|
var init_model = __esmMin((() => {
|
|
10956
10956
|
init_dist();
|
|
10957
10957
|
init_patch();
|
|
@@ -11144,11 +11144,12 @@ var init_model = __esmMin((() => {
|
|
|
11144
11144
|
return flattenTree(tree, state.closed);
|
|
11145
11145
|
};
|
|
11146
11146
|
crowdedOf = (patches) => crowdedDirectories(buildTree(patches.map((patch) => patch.path)), 8);
|
|
11147
|
-
|
|
11147
|
+
foldersOfFile = (state, fileIndex) => {
|
|
11148
11148
|
const patch = state.patches[fileIndex];
|
|
11149
|
-
if (patch === void 0) return
|
|
11150
|
-
const
|
|
11151
|
-
|
|
11149
|
+
if (patch === void 0) return [];
|
|
11150
|
+
const drawn = new Set(flattenTree(treeOf(state), []).filter((row) => row.kind !== "file").map((row) => row.path));
|
|
11151
|
+
const segments = patch.path.split("/").slice(0, -1);
|
|
11152
|
+
return segments.map((_, at) => segments.slice(0, segments.length - at).join("/")).filter((path) => drawn.has(path));
|
|
11152
11153
|
};
|
|
11153
11154
|
isReviewed = (state, fileIndex) => {
|
|
11154
11155
|
const patch = state.patches[fileIndex];
|
|
@@ -12270,12 +12271,14 @@ var init_reduce = __esmMin((() => {
|
|
|
12270
12271
|
};
|
|
12271
12272
|
};
|
|
12272
12273
|
foldDirectory = (state, shut) => {
|
|
12273
|
-
const
|
|
12274
|
-
if (
|
|
12275
|
-
const
|
|
12274
|
+
const chain = foldersOfFile(state, state.patchIndex);
|
|
12275
|
+
if (chain.length === 0) return state;
|
|
12276
|
+
const target = shut ? chain.find((path) => !state.closed.includes(path)) : chain.findLast((path) => state.closed.includes(path));
|
|
12277
|
+
if (target === void 0) return state;
|
|
12278
|
+
const closed = state.closed.filter((path) => path !== target);
|
|
12276
12279
|
return {
|
|
12277
12280
|
...state,
|
|
12278
|
-
closed: shut ? [...closed,
|
|
12281
|
+
closed: shut ? [...closed, target] : closed
|
|
12279
12282
|
};
|
|
12280
12283
|
};
|
|
12281
12284
|
foldLayer = (state, shut) => {
|
|
@@ -13334,7 +13337,7 @@ var init_diffview = __esmMin((() => {
|
|
|
13334
13337
|
}));
|
|
13335
13338
|
//#endregion
|
|
13336
13339
|
//#region src/tui/render.ts
|
|
13337
|
-
var ROW_HEIGHT, COMPOSE_WIDTH, GUTTER_X, CHIP_GAP, FRAME_PAD, MODAL_ROOM, COMPOSE_CHROME, COMPOSE_ACTION_ROWS, COMPOSE_PAD, COMPOSE_MIN_TEXT, 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, BRANCH_WIDTH, BRANCH_NAME_MIN, BRANCH_TAIL, EMPTY_LIST, MODAL_MARGIN, shareOf, homeWidth, longestName, commandRow, modalWidth, panelWidth, panelTop, panelRows, composeRoom, laidOut, STICKY_MAX, pickPaint, SELECTION, CURSOR, ACCENT, GAP_PAINT, bar, makeList, makeDiffPane, makePanel, makeListParts, makeListText, makeGutter, makeScroller, makeScrim, makeScroll, makePalette, makePaletteParts, makePendingParts, makeChoices, stack, makeBody, makeHome, makeModals, makeKeysParts, makeFoundParts, FONTS, logoFont, makeLanding, makeLogo, makeComposeParts, makeCompose, clip, clipHead, clipMiddle, clipPath, 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, 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;
|
|
13340
|
+
var ROW_HEIGHT, COMPOSE_WIDTH, GUTTER_X, CHIP_GAP, FRAME_PAD, MODAL_ROOM, COMPOSE_CHROME, COMPOSE_ACTION_ROWS, COMPOSE_PAD, COMPOSE_MIN_TEXT, 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_INSET, BRANCH_WIDTH, BRANCH_NAME_MIN, BRANCH_TAIL, EMPTY_LIST, MODAL_MARGIN, shareOf, homeWidth, longestName, commandRow, modalWidth, panelWidth, panelTop, panelRows, composeRoom, laidOut, STICKY_MAX, pickPaint, SELECTION, CURSOR, ACCENT, GAP_PAINT, bar, makeList, makeDiffPane, makePanel, makeListParts, makeListText, makeGutter, makeScroller, makeScrim, makeScroll, makePalette, makePaletteParts, makePendingParts, makeChoices, stack, makeBody, makeHome, makeModals, makeKeysParts, makeFoundParts, FONTS, logoFont, makeLanding, makeLogo, makeComposeParts, makeCompose, clip, clipHead, clipMiddle, clipPath, 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, 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;
|
|
13338
13341
|
var init_render = __esmMin((() => {
|
|
13339
13342
|
init_command();
|
|
13340
13343
|
init_patch();
|
|
@@ -13370,6 +13373,7 @@ var init_render = __esmMin((() => {
|
|
|
13370
13373
|
PANEL_QUARTER = 4;
|
|
13371
13374
|
PANEL_FIFTH = 5;
|
|
13372
13375
|
PANE_CHROME = 3;
|
|
13376
|
+
PANE_INSET = 1;
|
|
13373
13377
|
BRANCH_WIDTH = 82;
|
|
13374
13378
|
BRANCH_NAME_MIN = 12;
|
|
13375
13379
|
BRANCH_TAIL = 45;
|
|
@@ -14183,17 +14187,24 @@ var init_render = __esmMin((() => {
|
|
|
14183
14187
|
listText(state) {
|
|
14184
14188
|
if (atHome(state)) return this.branchTable(state);
|
|
14185
14189
|
if (onLayers(state)) return this.layerRail(state);
|
|
14186
|
-
const
|
|
14190
|
+
const room = this.listRoom();
|
|
14187
14191
|
const pane = this.paneRoom();
|
|
14188
|
-
const
|
|
14192
|
+
const whole = treeWindow(state, room);
|
|
14193
|
+
const window = whole.more === 0 ? whole : treeWindow(state, Math.max(1, room - 1));
|
|
14189
14194
|
const rows = window.rows.flatMap((row) => [fg(row.kind === "file" ? palette.ink : palette.muted)(`${treeLine(state, row, pane)}\n`)]);
|
|
14190
14195
|
const more = window.more > 0 ? [fg(palette.faint)(` … ${window.more} more`)] : [];
|
|
14191
14196
|
return new StyledText([...rows, ...more]);
|
|
14192
14197
|
}
|
|
14198
|
+
listRoom() {
|
|
14199
|
+
return Math.max(1, this.listPane.height - PANE_INSET);
|
|
14200
|
+
}
|
|
14193
14201
|
layerRail(state) {
|
|
14194
|
-
const
|
|
14202
|
+
const banner = state.layersStale ? 1 : 0;
|
|
14203
|
+
const height = Math.max(1, this.listRoom() - banner);
|
|
14195
14204
|
const room = layerRoom(state, this.paneRoom());
|
|
14196
|
-
const
|
|
14205
|
+
const all = layerRows(state, room.title, room.note);
|
|
14206
|
+
const whole = railWindow(all, height, state.layerIndex);
|
|
14207
|
+
const window = whole.more === 0 ? whole : railWindow(all, Math.max(1, height - 1), state.layerIndex);
|
|
14197
14208
|
const rows = window.rows.map((row) => fg(layerPaint(state, row))(`${layerText(state, row, room)}\n`));
|
|
14198
14209
|
const more = window.more > 0 ? [fg(palette.faint)(` … ${window.more} more`)] : [];
|
|
14199
14210
|
const warn = state.layersStale ? [fg(palette.attention)(`${staleBanner(room.note)}\n`)] : [];
|
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.51",
|
|
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": {
|