@eliya-oss/agent-diff 0.1.0-alpha.127 → 0.1.0-alpha.128
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 +8 -0
- package/dist/main.js +26 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.128
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- A file whose name is not plain ASCII is in the review. git quotes such paths by default, adiff could not read the quoted form, and the file was dropped from the diff entirely — absent from the tree, absent from the count, unreachable by `]`, with nothing saying so. `layers set` reported it to the agent as vanished while it existed, and with layers set the same diff reported one more file than without.
|
|
8
|
+
|
|
9
|
+
Two things introduced earlier today are also fixed. A layer whose files you have all read stopped saying so once `f` hid them — the tick reverted and the layer looked unstarted, because the tally counted the visible files rather than the layer's own. And the leftover layer could say "0 runs of changed lines the layers do not account for" while listing a file; it now says what is actually left over.
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.127
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -9793,7 +9793,7 @@ var init_run = __esmMin((() => {
|
|
|
9793
9793
|
gitOrEmpty = fn("Git.runOrEmpty")(function* (cwd, args) {
|
|
9794
9794
|
return yield* git(cwd, args).pipe(catchTag("GitCommandFailed", () => succeed$1("")));
|
|
9795
9795
|
});
|
|
9796
|
-
})), GREP_CONTEXT, CACHE_SIZE, NAME_TTL, FRESH_TTL, SPLIT, DEFAULT_BRANCH_CANDIDATES, STAT, Git, parseStat, readEntries, findDefaultBranch, partsOf$1, findMergeBase, toWorktree, branchTips, findParent, splitLines, absent, readText, settled, seenAs, listWorktrees, readDiff, readStat, readSource, readBlob, readGrep, findRepo, refResolves, sharedCommit, makeCaches, shapeWith, makeGit, GitLive;
|
|
9796
|
+
})), GREP_CONTEXT, CACHE_SIZE, NAME_TTL, FRESH_TTL, SPLIT, DEFAULT_BRANCH_CANDIDATES, PLAIN_PATHS, STAT, Git, parseStat, readEntries, findDefaultBranch, partsOf$1, findMergeBase, toWorktree, branchTips, findParent, splitLines, absent, readText, settled, seenAs, listWorktrees, readDiff, readStat, readSource, readBlob, readGrep, findRepo, refResolves, sharedCommit, makeCaches, shapeWith, makeGit, GitLive;
|
|
9797
9797
|
var init_service = __esmMin((() => {
|
|
9798
9798
|
init_dist();
|
|
9799
9799
|
init_error$1();
|
|
@@ -9809,6 +9809,7 @@ var init_service = __esmMin((() => {
|
|
|
9809
9809
|
"master",
|
|
9810
9810
|
"main"
|
|
9811
9811
|
];
|
|
9812
|
+
PLAIN_PATHS = ["-c", "core.quotepath=false"];
|
|
9812
9813
|
STAT = /(\d+) files? changed(?:, (\d+) insertions?\(\+\))?(?:, (\d+) deletions?\(-\))?/;
|
|
9813
9814
|
Git = class extends Service()("adiff/Git") {};
|
|
9814
9815
|
parseStat = (raw) => {
|
|
@@ -9923,6 +9924,7 @@ var init_service = __esmMin((() => {
|
|
|
9923
9924
|
const target = worktree.base.length > 0 ? worktree.base : "HEAD";
|
|
9924
9925
|
const scope = only === void 0 ? [] : ["--", only];
|
|
9925
9926
|
return yield* gitOrEmpty(worktree.path, [
|
|
9927
|
+
...PLAIN_PATHS,
|
|
9926
9928
|
"diff",
|
|
9927
9929
|
`-U${context}`,
|
|
9928
9930
|
target,
|
|
@@ -10983,7 +10985,7 @@ var init_pane = __esmMin((() => {
|
|
|
10983
10985
|
init_drafts();
|
|
10984
10986
|
init_init();
|
|
10985
10987
|
init_pane();
|
|
10986
|
-
var version$1 = "0.1.0-alpha.
|
|
10988
|
+
var version$1 = "0.1.0-alpha.128";
|
|
10987
10989
|
//#endregion
|
|
10988
10990
|
//#region src/cli/upgrade.ts
|
|
10989
10991
|
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;
|
|
@@ -11245,7 +11247,7 @@ var init_model$1 = __esmMin((() => {
|
|
|
11245
11247
|
}));
|
|
11246
11248
|
//#endregion
|
|
11247
11249
|
//#region src/domain/layers/coverage.ts
|
|
11248
|
-
var codeBlockOf$1, codeBlocks, noteOf, spansOf$1, changedLines, holds, runsOf, tallyOf, coverage,
|
|
11250
|
+
var codeBlockOf$1, codeBlocks, noteOf, spansOf$1, changedLines, holds, runsOf, tallyOf, coverage, runsSaid, filesSaid, leftSaid, unordered, withFullCoverage, proseAnchors;
|
|
11249
11251
|
var init_coverage = __esmMin((() => {
|
|
11250
11252
|
init_dist();
|
|
11251
11253
|
init_model$1();
|
|
@@ -11301,7 +11303,13 @@ var init_coverage = __esmMin((() => {
|
|
|
11301
11303
|
missing: tallies.flatMap((tally) => tally.missing)
|
|
11302
11304
|
};
|
|
11303
11305
|
};
|
|
11304
|
-
|
|
11306
|
+
runsSaid = (count) => count === 1 ? "One run of changed lines the layers do not account for." : `${count} runs of changed lines the layers do not account for.`;
|
|
11307
|
+
filesSaid = (count) => count === 1 ? "One file the layers had no lines to order." : `${count} files the layers had no lines to order.`;
|
|
11308
|
+
leftSaid = (runs, files) => {
|
|
11309
|
+
if (runs > 0 && files > 0) return `${runsSaid(runs)} ${filesSaid(files)}`;
|
|
11310
|
+
if (runs > 0) return runsSaid(runs);
|
|
11311
|
+
return files > 0 ? filesSaid(files) : "";
|
|
11312
|
+
};
|
|
11305
11313
|
unordered = (patches, layers, missing) => {
|
|
11306
11314
|
const named = /* @__PURE__ */ new Set([...spansOf$1(layers).map((span) => span.path), ...missing.map((span) => span.path)]);
|
|
11307
11315
|
return patches.filter((patch) => !named.has(patch.path)).map((patch) => ({
|
|
@@ -11315,12 +11323,13 @@ var init_coverage = __esmMin((() => {
|
|
|
11315
11323
|
const left = unordered(patches, layers.layers, gap.missing);
|
|
11316
11324
|
const spans = [...gap.missing, ...left];
|
|
11317
11325
|
if (spans.length === 0) return layers;
|
|
11326
|
+
const said = leftSaid(gap.missing.length, left.length);
|
|
11318
11327
|
const remainder = {
|
|
11319
11328
|
title: REMAINDER_TITLE,
|
|
11320
|
-
blocks: [{
|
|
11329
|
+
blocks: [...said.length === 0 ? [] : [{
|
|
11321
11330
|
kind: "prose",
|
|
11322
|
-
markdown:
|
|
11323
|
-
}, ...spans.map((span) => codeBlockOf$1(span))]
|
|
11331
|
+
markdown: said
|
|
11332
|
+
}], ...spans.map((span) => codeBlockOf$1(span))]
|
|
11324
11333
|
};
|
|
11325
11334
|
return {
|
|
11326
11335
|
...layers,
|
|
@@ -13009,7 +13018,7 @@ var init_tree = __esmMin((() => {
|
|
|
13009
13018
|
return node.children.reduce((total, child) => total + filesUnder(tree, child), 0);
|
|
13010
13019
|
};
|
|
13011
13020
|
crowdedDirectories = (tree, limit) => tree.nodes.filter((node) => node.kind === "directory" && directFiles(tree, node.id) > limit).map((node) => node.path);
|
|
13012
|
-
})), nothingReviewed, initialState, TREE_MAX, TREE_ROOMY, TREE_WIDE, TREE_MIN, TREE_SHARE, DIFF_MIN, DIFF_ROOMY, bodyRoom, treeWidth, tooSmall, reviewWidth, panelFits, panelShown, onLayers, selectedLayer, proseFor, kept, layerFiles, layerHolding, layerOpen, chunked, packed, shortened, wordWrapped, wrapped, clip, TITLE_ROWS, titleRows, shortDir, fileRow$1, shownFiles, dirOf, fileRows, layerRead, layerDone, countRow, layerBody, layerRows, nearFirst, layerFitted, railWindow, selectedBranch, selectedPatch, pullHere, knownToHaveNoPull, treeOf, reviewedCountIn, CROWDED, treeRows, crowdedOf, foldersOfFile, isReviewed, treeStart, treeWindow, commentsOn, hiddenLines, markedRows, carriesLine, selectedRows, snippetOf, selectedLineCount, lineOf, brokenAt, laidLine, laidDraft, COMPOSE_BOX, COMPOSE_MARGIN, COMPOSE_PAD, COMPOSE_LEAST, composeBox, composeRoom$1, composeTarget, replyTarget, threadReplying, VOICES, threadQuote, pickedText, takenRows, selectedLines, shownMatches, matchHere, selectionReadout, CONTEXT_STEPS, wholeFileOff, contextToggled, layerContext, newLineAt, sourceLineAt, rowAtSourceLine, rowShowing, lineOnSide, commentRowsIn, threadsAtRow, stopsAtRow, threadHere, threadAtStop, threadAtRow, openCommentRows, filesWithComments, answerCount, PANEL_SECTIONS, answersIn, newerOf, spokeLast, sectionOf, sentEntry, panelEntries, panelEntry, threadChosen, spokenSince, hunkStarts, openingRow, changeAround, nextUnreviewed, reviewedCount, fileOrder, filePlace, readingOrder, placeIn, layerFile, layerAfter, selectionRange;
|
|
13021
|
+
})), nothingReviewed, initialState, TREE_MAX, TREE_ROOMY, TREE_WIDE, TREE_MIN, TREE_SHARE, DIFF_MIN, DIFF_ROOMY, bodyRoom, treeWidth, tooSmall, reviewWidth, panelFits, panelShown, onLayers, selectedLayer, proseFor, kept, layerHolds, layerFiles, layerHolding, layerOpen, chunked, packed, shortened, wordWrapped, wrapped, clip, TITLE_ROWS, titleRows, shortDir, fileRow$1, shownFiles, dirOf, fileRows, layerRead, layerDone, countRow, layerBody, layerRows, nearFirst, layerFitted, railWindow, selectedBranch, selectedPatch, pullHere, knownToHaveNoPull, treeOf, reviewedCountIn, CROWDED, treeRows, crowdedOf, foldersOfFile, isReviewed, treeStart, treeWindow, commentsOn, hiddenLines, markedRows, carriesLine, selectedRows, snippetOf, selectedLineCount, lineOf, brokenAt, laidLine, laidDraft, COMPOSE_BOX, COMPOSE_MARGIN, COMPOSE_PAD, COMPOSE_LEAST, composeBox, composeRoom$1, composeTarget, replyTarget, threadReplying, VOICES, threadQuote, pickedText, takenRows, selectedLines, shownMatches, matchHere, selectionReadout, CONTEXT_STEPS, wholeFileOff, contextToggled, layerContext, newLineAt, sourceLineAt, rowAtSourceLine, rowShowing, lineOnSide, commentRowsIn, threadsAtRow, stopsAtRow, threadHere, threadAtStop, threadAtRow, openCommentRows, filesWithComments, answerCount, PANEL_SECTIONS, answersIn, newerOf, spokeLast, sectionOf, sentEntry, panelEntries, panelEntry, threadChosen, spokenSince, hunkStarts, openingRow, changeAround, nextUnreviewed, reviewedCount, fileOrder, filePlace, readingOrder, placeIn, layerFile, layerAfter, selectionRange;
|
|
13013
13022
|
var init_model = __esmMin((() => {
|
|
13014
13023
|
init_dist();
|
|
13015
13024
|
init_patch();
|
|
@@ -13105,14 +13114,15 @@ var init_model = __esmMin((() => {
|
|
|
13105
13114
|
return layer.prose.filter((anchor) => anchor.path === path);
|
|
13106
13115
|
};
|
|
13107
13116
|
kept = (state, at) => !state.hideReviewed || at === state.patchIndex || !isReviewed(state, at);
|
|
13108
|
-
|
|
13117
|
+
layerHolds = (state, layerIndex) => {
|
|
13109
13118
|
const layer = state.layers[layerIndex];
|
|
13110
13119
|
if (layer === void 0) return [];
|
|
13111
13120
|
return layer.files.flatMap((path) => {
|
|
13112
13121
|
const at = state.patches.findIndex((patch) => patch.path === path);
|
|
13113
|
-
return at === -1
|
|
13122
|
+
return at === -1 ? [] : [at];
|
|
13114
13123
|
});
|
|
13115
13124
|
};
|
|
13125
|
+
layerFiles = (state, layerIndex) => layerHolds(state, layerIndex).filter((at) => kept(state, at));
|
|
13116
13126
|
layerHolding = (state, fileIndex) => {
|
|
13117
13127
|
const path = state.patches[fileIndex]?.path;
|
|
13118
13128
|
const at = state.layers.findIndex((layer) => layer.files.includes(path ?? ""));
|
|
@@ -13188,7 +13198,7 @@ var init_model = __esmMin((() => {
|
|
|
13188
13198
|
return rows;
|
|
13189
13199
|
};
|
|
13190
13200
|
layerRead = (state, layerIndex) => {
|
|
13191
|
-
const files =
|
|
13201
|
+
const files = layerHolds(state, layerIndex);
|
|
13192
13202
|
return {
|
|
13193
13203
|
done: files.filter((at) => isReviewed(state, at)).length,
|
|
13194
13204
|
all: files.length
|
|
@@ -13210,7 +13220,11 @@ var init_model = __esmMin((() => {
|
|
|
13210
13220
|
lead: false
|
|
13211
13221
|
}];
|
|
13212
13222
|
};
|
|
13213
|
-
layerBody = (state, index, room, shown) =>
|
|
13223
|
+
layerBody = (state, index, room, shown) => {
|
|
13224
|
+
if (!layerOpen(state, index) || !shown.has(index)) return countRow(state, index, room.file);
|
|
13225
|
+
const rows = fileRows(state, index, room);
|
|
13226
|
+
return rows.length > 0 ? rows : countRow(state, index, room.file);
|
|
13227
|
+
};
|
|
13214
13228
|
layerRows = (state, room, shown) => state.layers.flatMap((_, index) => [
|
|
13215
13229
|
...index > 0 ? [{
|
|
13216
13230
|
index,
|
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.128",
|
|
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": {
|