@eliya-oss/agent-diff 0.1.0-alpha.155 → 0.1.0-alpha.157
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 +31 -0
- package/dist/main.js +210 -18
- package/package.json +1 -1
- package/skills/adiff/SKILL.md +12 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.157
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat(branches): `b` sets what this branch is compared against, from the list of refs the repository has.
|
|
8
|
+
|
|
9
|
+
<details><summary>Why</summary>
|
|
10
|
+
|
|
11
|
+
A reviewer who could see the base was wrong — the row says what each branch is stacked on — had to
|
|
12
|
+
leave the terminal, remember `adiff base set`, and come back. `b` opens the refs newest first,
|
|
13
|
+
narrowed by typing, and a ref you type that is not listed is still tried, so a tag or a commit works.
|
|
14
|
+
`ctrl+x` hands the base back to adiff's own guess.
|
|
15
|
+
|
|
16
|
+
</details>
|
|
17
|
+
|
|
18
|
+
## 0.1.0-alpha.156
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- fix(skill): the skill tells an agent to claim the runs a layer explains, where it used to recommend a span over the whole file.
|
|
23
|
+
|
|
24
|
+
<details><summary>What was wrong</summary>
|
|
25
|
+
|
|
26
|
+
The skill said a span from line 1 to past the end of the file "covers a file whatever happens to it",
|
|
27
|
+
against a tight range that "goes stale on the next push". An agent following that writes a reading
|
|
28
|
+
order whose every layer claims the whole file, and the terminal then draws the whole diff for each
|
|
29
|
+
one — eleven layers over one file meant reading it eleven times. Staleness is the cheaper problem:
|
|
30
|
+
adiff says when a set is stale.
|
|
31
|
+
|
|
32
|
+
</details>
|
|
33
|
+
|
|
3
34
|
## 0.1.0-alpha.155
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -10211,7 +10211,7 @@ var init_run = __esmMin((() => {
|
|
|
10211
10211
|
gitOrEmpty = fn("Git.runOrEmpty")(function* (cwd, args) {
|
|
10212
10212
|
return yield* git(cwd, args).pipe(catchTag("GitCommandFailed", () => succeed$1("")));
|
|
10213
10213
|
});
|
|
10214
|
-
})), CACHE_SIZE, NAME_TTL, FRESH_TTL, SPLIT, DEFAULT_BRANCH_CANDIDATES, PLAIN_PATHS, STAT, Git, parseStat, readEntries, findDefaultBranch, partsOf$2, findMergeBase, toWorktree, branchTips, findParent, splitLines, absent, readText, settled, seenAs, listWorktrees, readDiff, readStat, readSource, readBlob, readGrep, findRepo, refResolves, sharedCommit, makeCaches, shapeWith, makeGit, GitLive;
|
|
10214
|
+
})), CACHE_SIZE, NAME_TTL, FRESH_TTL, SPLIT, DEFAULT_BRANCH_CANDIDATES, PLAIN_PATHS, STAT, Git, parseStat, readEntries, findDefaultBranch, partsOf$2, findMergeBase, toWorktree, branchTips, findParent, splitLines, absent, readText, settled, seenAs, listWorktrees, readDiff, readStat, readSource, readBlob, readGrep, findRepo, REFS_MOST, readRefs, refResolves, sharedCommit, makeCaches, shapeWith, makeGit, GitLive;
|
|
10215
10215
|
var init_service = __esmMin((() => {
|
|
10216
10216
|
init_dist();
|
|
10217
10217
|
init_error$1();
|
|
@@ -10386,6 +10386,17 @@ var init_service = __esmMin((() => {
|
|
|
10386
10386
|
])).trim();
|
|
10387
10387
|
return trimmed.length === 0 ? resolve(worktree) : resolve(trimmed, "..");
|
|
10388
10388
|
});
|
|
10389
|
+
REFS_MOST = 200;
|
|
10390
|
+
readRefs = fn("Git.refs")(function* (repo) {
|
|
10391
|
+
return (yield* gitOrEmpty(repo, [
|
|
10392
|
+
"for-each-ref",
|
|
10393
|
+
"--sort=-committerdate",
|
|
10394
|
+
`--count=${REFS_MOST}`,
|
|
10395
|
+
"--format=%(refname:short)",
|
|
10396
|
+
"refs/heads",
|
|
10397
|
+
"refs/remotes"
|
|
10398
|
+
])).split("\n").map((line) => line.trim()).filter((line) => line.length > 0 && !line.endsWith("/HEAD"));
|
|
10399
|
+
});
|
|
10389
10400
|
refResolves = fn("Git.resolves")(function* (repo, ref) {
|
|
10390
10401
|
return (yield* gitOrEmpty(repo, [
|
|
10391
10402
|
"rev-parse",
|
|
@@ -10429,6 +10440,7 @@ var init_service = __esmMin((() => {
|
|
|
10429
10440
|
grep: readGrep,
|
|
10430
10441
|
defaultBranch: (repo) => get(caches.baseName, repo),
|
|
10431
10442
|
stackParent: (repo, branch) => get(caches.baseName, repo).pipe(flatMap((fallback) => get(caches.parent, `${repo}${SPLIT}${branch}${SPLIT}${fallback}`))),
|
|
10443
|
+
refs: readRefs,
|
|
10432
10444
|
resolves: refResolves,
|
|
10433
10445
|
sharedWith: sharedCommit
|
|
10434
10446
|
});
|
|
@@ -10556,7 +10568,7 @@ var init_error = __esmMin((() => {
|
|
|
10556
10568
|
}));
|
|
10557
10569
|
//#endregion
|
|
10558
10570
|
//#region src/cli/commands.ts
|
|
10559
|
-
var realOf, CONTEXT, POLL, AUTO, askedFor$1, basedOn, worktreeNamed, findBranch, baseFor, patchesOf, findPatch, waitingOn, summaryOf, summaryFor, listBranches, blobOf, vouchIn, toggleVouch, readingOf, progressIn, reviewProgress, bodyOf, saidTo, spunOf, sentOf, whereItSitsNow$1, sentIn, listSent, anchorIn, commentsIn, commentIn, submitComment, submitComments, without$2, submitReply, listPatches, patchIn, flatten, threadBefore, takeComments, repoOf$1, worktreeOf$1, branchAt, awaitComments, saveReport, fileSource, fileBefore, readPreferences, readPreference, ON, OFF, preferenceValue, savePreference, setBase, clearBase, markRead;
|
|
10571
|
+
var realOf, CONTEXT, POLL, AUTO, askedFor$1, basedOn, worktreeNamed, findBranch, baseFor, patchesOf, findPatch, waitingOn, summaryOf, summaryFor, listBranches, blobOf, vouchIn, toggleVouch, readingOf, progressIn, reviewProgress, bodyOf, saidTo, spunOf, sentOf, whereItSitsNow$1, sentIn, listSent, anchorIn, commentsIn, commentIn, submitComment, submitComments, without$2, submitReply, listPatches, patchIn, flatten, threadBefore, takeComments, repoOf$1, worktreeOf$1, branchAt, awaitComments, saveReport, fileSource, fileBefore, readPreferences, readPreference, ON, OFF, preferenceValue, savePreference, listRefs, setBase, clearBase, markRead;
|
|
10560
10572
|
var init_commands = __esmMin((() => {
|
|
10561
10573
|
init_dist();
|
|
10562
10574
|
init_patch();
|
|
@@ -11038,6 +11050,9 @@ var init_commands = __esmMin((() => {
|
|
|
11038
11050
|
byDefault: known.byDefault
|
|
11039
11051
|
};
|
|
11040
11052
|
});
|
|
11053
|
+
listRefs = fn("Cli.listRefs")(function* (repo) {
|
|
11054
|
+
return yield* (yield* Git).refs(repo);
|
|
11055
|
+
});
|
|
11041
11056
|
setBase = fn("Cli.setBase")(function* (repo, branch, base) {
|
|
11042
11057
|
const store = yield* Store;
|
|
11043
11058
|
const based = yield* baseFor(repo, branch, base);
|
|
@@ -11309,7 +11324,7 @@ var init_pane = __esmMin((() => {
|
|
|
11309
11324
|
//#region package.json
|
|
11310
11325
|
init_drafts();
|
|
11311
11326
|
init_pane();
|
|
11312
|
-
var version$1 = "0.1.0-alpha.
|
|
11327
|
+
var version$1 = "0.1.0-alpha.157";
|
|
11313
11328
|
//#endregion
|
|
11314
11329
|
//#region src/cli/upgrade.ts
|
|
11315
11330
|
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$1, newer, tagIn, fetched, askLatest, here, findUpgrade, willUpgrade, ranChild, runUpgrade, statusOf$1, sayFound, sayDone, attempted, SAY_SKILL_TOO, upgradeReport;
|
|
@@ -13927,7 +13942,7 @@ var init_tree = __esmMin((() => {
|
|
|
13927
13942
|
return node.children.reduce((total, child) => total + filesUnder(tree, child), 0);
|
|
13928
13943
|
};
|
|
13929
13944
|
crowdedDirectories = (tree, limit) => tree.nodes.filter((node) => node.kind === "directory" && directFiles(tree, node.id) > limit).map((node) => node.path);
|
|
13930
|
-
})), HOLDS, chosenNow, withChosen, preferenceRows, 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, NOTHING_LEFT, textRows, emptyRows, layerBody, holdsCursor, layerCard, layerRows, nearFirst, layerFitted, restingAt, railTop, PANE_CHROME$1, layerRoomIn, railWindow, selectedBranch, selectedPatch, pullHere, knownToHaveNoPull, treeOf, reviewedCountIn, CROWDED, treeRows, crowdedOf, foldersOfFile, isReviewed, treeStart, treeWindow, MINUTE, HOUR, DAY, sinceThen, threadStand, STAND_WEIGHT, louder, threadsOn, hiddenLines, rowsUnder, markedStands, carriesLine, selectedRows, snippetOf, selectedLineCount, lineOf, brokenAt, laidLine, laidDraft, COMPOSE_BOX, COMPOSE_MARGIN, COMPOSE_PAD, COMPOSE_LEAST, composeBox, composeRoom$1, composeTarget, remarkAnswering, answerTarget, replyTarget, threadReplying, VOICES, remarkQuote, threadQuote, pickedText, takenRows, selectedLines, shownMatches, matchHere, selectionReadout, CONTEXT_STEPS, wholeFileOff, contextToggled, layerContext, newLineAt, sourceLineAt, rowAtSourceLine, rowShowing, lineOnSide, needingRowsIn, commentRowsIn, threadsAtRow, remarkShown, remarksAtRow, remarkRowsIn, stopsIn, stopsAtRow, remarkAtStop, remarkAtRow, remarkInPanel, remarkInDiff, remarkUnderCursor, remarkToTakeOn, remarkHere, threadHere, threadAtStop, threadAtRow, openCommentRows, filesWithComments, answerCount, PANEL_SECTIONS, answersIn, newerOf, spokeLast, SECTION_OF, sectionOf, sentEntry, remarkRows, panelEntries, panelEntry, threadChosen, spokenSince, hunkStarts, openingRow, changeAround, nextUnreviewed, reviewedCount, fileOrder, filePlace, readingOrder, placeIn, layerFile, layerAfter, selectionRange;
|
|
13945
|
+
})), HOLDS, chosenNow, withChosen, preferenceRows, nothingReviewed, nothingFound, 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, NOTHING_LEFT, textRows, emptyRows, layerBody, holdsCursor, layerCard, layerRows, nearFirst, layerFitted, restingAt, railTop, PANE_CHROME$1, layerRoomIn, railWindow, selectedBranch, selectedPatch, pullHere, knownToHaveNoPull, treeOf, reviewedCountIn, CROWDED, treeRows, crowdedOf, foldersOfFile, isReviewed, treeStart, treeWindow, MINUTE, HOUR, DAY, sinceThen, threadStand, STAND_WEIGHT, louder, threadsOn, hiddenLines, rowsUnder, markedStands, carriesLine, selectedRows, snippetOf, selectedLineCount, lineOf, brokenAt, laidLine, laidDraft, COMPOSE_BOX, COMPOSE_MARGIN, COMPOSE_PAD, COMPOSE_LEAST, composeBox, composeRoom$1, composeTarget, remarkAnswering, answerTarget, replyTarget, threadReplying, VOICES, remarkQuote, threadQuote, pickedText, takenRows, selectedLines, shownMatches, refsShown, refHere, matchHere, selectionReadout, CONTEXT_STEPS, wholeFileOff, contextToggled, layerContext, newLineAt, sourceLineAt, rowAtSourceLine, rowShowing, lineOnSide, needingRowsIn, commentRowsIn, threadsAtRow, remarkShown, remarksAtRow, remarkRowsIn, stopsIn, stopsAtRow, remarkAtStop, remarkAtRow, remarkInPanel, remarkInDiff, remarkUnderCursor, remarkToTakeOn, remarkHere, threadHere, threadAtStop, threadAtRow, openCommentRows, filesWithComments, answerCount, PANEL_SECTIONS, answersIn, newerOf, spokeLast, SECTION_OF, sectionOf, sentEntry, remarkRows, panelEntries, panelEntry, threadChosen, spokenSince, hunkStarts, openingRow, changeAround, nextUnreviewed, reviewedCount, fileOrder, filePlace, readingOrder, placeIn, layerFile, layerAfter, selectionRange;
|
|
13931
13946
|
var init_model = __esmMin((() => {
|
|
13932
13947
|
init_dist();
|
|
13933
13948
|
init_patch();
|
|
@@ -13984,6 +13999,15 @@ var init_model = __esmMin((() => {
|
|
|
13984
13999
|
now: 0,
|
|
13985
14000
|
focusWas: "diff"
|
|
13986
14001
|
};
|
|
14002
|
+
nothingFound = {
|
|
14003
|
+
matches: [],
|
|
14004
|
+
refs: [],
|
|
14005
|
+
refIndex: 0,
|
|
14006
|
+
matchIndex: 0,
|
|
14007
|
+
term: "",
|
|
14008
|
+
query: "",
|
|
14009
|
+
paletteIndex: 0
|
|
14010
|
+
};
|
|
13987
14011
|
initialState = (branches) => ({
|
|
13988
14012
|
...nothingReviewed,
|
|
13989
14013
|
screen: "branches",
|
|
@@ -14000,8 +14024,6 @@ var init_model = __esmMin((() => {
|
|
|
14000
14024
|
draftAt: "",
|
|
14001
14025
|
notice: "",
|
|
14002
14026
|
waiting: "",
|
|
14003
|
-
query: "",
|
|
14004
|
-
paletteIndex: 0,
|
|
14005
14027
|
returnTo: "branches",
|
|
14006
14028
|
closed: [],
|
|
14007
14029
|
vouched: [],
|
|
@@ -14026,8 +14048,7 @@ var init_model = __esmMin((() => {
|
|
|
14026
14048
|
forge: "asking",
|
|
14027
14049
|
layerIndex: 0,
|
|
14028
14050
|
openLayers: [],
|
|
14029
|
-
|
|
14030
|
-
matches: [],
|
|
14051
|
+
...nothingFound,
|
|
14031
14052
|
counted: {
|
|
14032
14053
|
file: 0,
|
|
14033
14054
|
branch: 0,
|
|
@@ -14035,7 +14056,6 @@ var init_model = __esmMin((() => {
|
|
|
14035
14056
|
},
|
|
14036
14057
|
leftOut: 0,
|
|
14037
14058
|
around: [],
|
|
14038
|
-
matchIndex: 0,
|
|
14039
14059
|
rail: "tree"
|
|
14040
14060
|
});
|
|
14041
14061
|
TREE_MAX = 34;
|
|
@@ -14480,6 +14500,12 @@ var init_model = __esmMin((() => {
|
|
|
14480
14500
|
if (wanted.length === 0) return state.matches;
|
|
14481
14501
|
return state.matches.filter((match) => `${match.path}:${match.line} ${match.text}`.toLowerCase().includes(wanted));
|
|
14482
14502
|
};
|
|
14503
|
+
refsShown = (state) => {
|
|
14504
|
+
const wanted = state.query.trim().toLowerCase();
|
|
14505
|
+
const held = state.refs.filter((ref) => ref.toLowerCase().includes(wanted));
|
|
14506
|
+
return wanted.length === 0 || held.some((ref) => ref.toLowerCase() === wanted) ? held : [...held, state.query.trim()];
|
|
14507
|
+
};
|
|
14508
|
+
refHere = (state) => refsShown(state)[state.refIndex];
|
|
14483
14509
|
matchHere = (state) => shownMatches(state)[state.matchIndex];
|
|
14484
14510
|
selectionReadout = (state) => {
|
|
14485
14511
|
const patch = selectedPatch(state);
|
|
@@ -15255,6 +15281,54 @@ var init_command = __esmMin((() => {
|
|
|
15255
15281
|
keys: ["<"],
|
|
15256
15282
|
screens: ["review"]
|
|
15257
15283
|
}),
|
|
15284
|
+
command({
|
|
15285
|
+
action: "base.open",
|
|
15286
|
+
also: [
|
|
15287
|
+
"base",
|
|
15288
|
+
"stacked on",
|
|
15289
|
+
"compare against",
|
|
15290
|
+
"diff against"
|
|
15291
|
+
],
|
|
15292
|
+
title: "Set what this branch is compared against",
|
|
15293
|
+
category: "Branches",
|
|
15294
|
+
keys: ["b"],
|
|
15295
|
+
screens: ["branches", "review"],
|
|
15296
|
+
hint: "base",
|
|
15297
|
+
rank: 5
|
|
15298
|
+
}),
|
|
15299
|
+
command({
|
|
15300
|
+
action: "base.set",
|
|
15301
|
+
title: "Use the base under the cursor",
|
|
15302
|
+
category: "Branches",
|
|
15303
|
+
keys: ["return"],
|
|
15304
|
+
screens: ["base"],
|
|
15305
|
+
listed: false
|
|
15306
|
+
}),
|
|
15307
|
+
command({
|
|
15308
|
+
action: "base.clear",
|
|
15309
|
+
title: "Let adiff work the base out again",
|
|
15310
|
+
category: "Branches",
|
|
15311
|
+
keys: ["ctrl+x"],
|
|
15312
|
+
screens: ["base"],
|
|
15313
|
+
hint: "automatic",
|
|
15314
|
+
listed: false
|
|
15315
|
+
}),
|
|
15316
|
+
command({
|
|
15317
|
+
action: "base.next",
|
|
15318
|
+
title: "Next base",
|
|
15319
|
+
category: "Branches",
|
|
15320
|
+
keys: ["down"],
|
|
15321
|
+
screens: ["base"],
|
|
15322
|
+
listed: false
|
|
15323
|
+
}),
|
|
15324
|
+
command({
|
|
15325
|
+
action: "base.prev",
|
|
15326
|
+
title: "Previous base",
|
|
15327
|
+
category: "Branches",
|
|
15328
|
+
keys: ["up"],
|
|
15329
|
+
screens: ["base"],
|
|
15330
|
+
listed: false
|
|
15331
|
+
}),
|
|
15258
15332
|
command({
|
|
15259
15333
|
action: "review.reload",
|
|
15260
15334
|
title: "Read the branches again",
|
|
@@ -15781,7 +15855,7 @@ var init_match = __esmMin((() => {
|
|
|
15781
15855
|
}));
|
|
15782
15856
|
//#endregion
|
|
15783
15857
|
//#region src/tui/reduce.ts
|
|
15784
|
-
var clamp, lastRow, rowsIn, withCursorVisible, moveCursor, stepStop, scrolled, restingOn, draggedTo, pickedIn, atRow, noneLeft, layerHunk, nextFileWithComments, atComment, nothingOpen, layerComment, PAN_STEP, panned, moveLayer, inRail, railScrolled, movePanel, layerDown, stepsToEnd, toTop, farOff, byHalf, boundedStep, PANEL_FAR, PANES, paneShown, panesShown, focusStepped, togglePanel, toggleNav, packedAway, zoom, toggleRail, foldDirectory, foldLayer, foldThread, fold, moveBranch, landingOn, revealing, atTheEnd, moveFile, selectHunk, swapEnds, atBranch, grownBy, startSelection, draftMark, openCompose, outOfDiff, BACK_FROM, goBack, walkMatches, openPalette, openKeys, openSettings, moveSettings, flipSetting, 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;
|
|
15858
|
+
var clamp, lastRow, rowsIn, withCursorVisible, moveCursor, stepStop, scrolled, restingOn, draggedTo, pickedIn, atRow, noneLeft, layerHunk, nextFileWithComments, atComment, nothingOpen, layerComment, PAN_STEP, panned, moveLayer, inRail, railScrolled, movePanel, layerDown, stepsToEnd, toTop, farOff, byHalf, boundedStep, PANEL_FAR, PANES, paneShown, panesShown, focusStepped, togglePanel, toggleNav, packedAway, zoom, toggleRail, foldDirectory, foldLayer, foldThread, fold, moveBranch, landingOn, revealing, atTheEnd, moveFile, selectHunk, swapEnds, atBranch, grownBy, startSelection, draftMark, openCompose, outOfDiff, BACK_FROM, goBack, walkMatches, openPalette, openKeys, openSettings, moveSettings, flipSetting, moveRef, 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;
|
|
15785
15859
|
var init_reduce = __esmMin((() => {
|
|
15786
15860
|
init_dist();
|
|
15787
15861
|
init_patch();
|
|
@@ -16276,6 +16350,18 @@ var init_reduce = __esmMin((() => {
|
|
|
16276
16350
|
const held = chosenNow(state);
|
|
16277
16351
|
return withChosen(state, wanted.name, !(held[wanted.name] ?? wanted.byDefault));
|
|
16278
16352
|
};
|
|
16353
|
+
moveRef = (state, delta) => ({
|
|
16354
|
+
...state,
|
|
16355
|
+
refIndex: clamp(state.refIndex + delta, 0, Math.max(0, refsShown(state).length - 1))
|
|
16356
|
+
});
|
|
16357
|
+
withRefs = (state, refs) => ({
|
|
16358
|
+
...state,
|
|
16359
|
+
screen: "base",
|
|
16360
|
+
returnTo: state.screen,
|
|
16361
|
+
refs,
|
|
16362
|
+
refIndex: 0,
|
|
16363
|
+
query: ""
|
|
16364
|
+
});
|
|
16279
16365
|
movePalette = (state, delta) => ({
|
|
16280
16366
|
...state,
|
|
16281
16367
|
paletteIndex: clamp(state.paletteIndex + delta, 0, Math.max(0, offered(state).length - 1))
|
|
@@ -16339,6 +16425,11 @@ var init_reduce = __esmMin((() => {
|
|
|
16339
16425
|
"pan.right": (state) => panned(state, PAN_STEP),
|
|
16340
16426
|
"pan.left": (state) => panned(state, -8),
|
|
16341
16427
|
"review.reload": (state) => state,
|
|
16428
|
+
"base.open": (state) => state,
|
|
16429
|
+
"base.set": (state) => state,
|
|
16430
|
+
"base.clear": (state) => state,
|
|
16431
|
+
"base.next": (state) => moveRef(state, 1),
|
|
16432
|
+
"base.prev": (state) => moveRef(state, -1),
|
|
16342
16433
|
"thread.settle": (state) => state,
|
|
16343
16434
|
"thread.settleRead": (state) => state,
|
|
16344
16435
|
"thread.remove": (state) => state,
|
|
@@ -17524,7 +17615,7 @@ var init_diffview = __esmMin((() => {
|
|
|
17524
17615
|
}));
|
|
17525
17616
|
//#endregion
|
|
17526
17617
|
//#region src/tui/render.ts
|
|
17527
|
-
var ROW_HEIGHT, COMPOSE_WIDTH, GUTTER_X, CHIP_GAP, MODAL_ROOM, COMPOSE_CHROME, COMPOSE_ACTION_ROWS, reportActions, SENDS, REPLIES, actionsText, SNIPPET_LINES, PALETTE_KEY, PALETTE_TITLE, PALETTE_GAP, PALETTE_CHROME, PENDING_CHROME, keysTitle, PALETTE_WIDTH, PANEL_SHARE, PANEL_MAX, PANEL_FLOOR, PANEL_FOOT, PANEL_QUARTER, PANEL_FIFTH, PANE_CHROME, PANE_EDGES, PANE_INSET, DIFF_FLOOR, COMPOSE_EDGE, CRAMPED, CRAMPED_ROWS, DIFF_CHROME_MOST, BRANCH_WIDTH, BRANCH_NAME_MIN, BRANCH_FIXED, STATE_MIN, EMPTY_LIST, MODAL_MARGIN, shareOf, homeWidth, longestName, longestState, keysOf, commandRow, modalWidth, panelWidth, panelTop, panelRows, composeRoom, laidOut$1, STICKY_MAX, pickPaint, PLAIN_PICKED, PICKED, PLAIN_CURSOR, UNDER_CURSOR, GAP_PAINT, frameRoot, crampedBar, bar, makeList, makeDiffPane, makePanel, makeListParts, makeListText, makeGutter, makeScroller, makeScrim, makeScroll, makePalette, asking, makePaletteParts, makeChoices, LIST_LEAD, windowed, listText, SHEET_GAP, sheetRow, groupedBy, sheetBlock, splitInTwo, sheetPaint, sheetDeep, sheetText, SETTING_LEAD, settingsText, stack, makeBody, makeHome, makeModals, makeSettingsParts, makeKeysParts, makeFoundParts, FONTS, logoFont, makeLanding, makeLogo, MAC_KEYS, makeComposeParts, makeCompose, stillThere, quotedFor, clipHead, clipMiddle, clipPath, INDENT_MAX, treeLabel, waitingLabel, inRange, notesOf, remarksOf, notesFor, paired, chipWidth, WAYS_OUT, keptWithin, CHIP_CHUNKS, shortPath, HOME_PATH_MIN, HOME_PATH_CHROME, elide, SUMMARY_LINES, summaryLines, contextLabel, nameRoom, stateRoom, columns, FORGE_SILENT, unaskedForge, branchHeading, atHome, layersCell, baseLabel, stateCell, branchCells, placeLabel, headerParts, panLabel, HEADER_GAP, HEADER_PATH_MIN, headerRoom, headerFitted, fallbackScope, treeMarks, treeTail, treeLine, GUTTER, DIR_LEAD, TITLE_LEAD, FILE_LEAD, STALE_ROOM, STALE_ASKING, STALE_LONG, STALE_MIDDLE, STALE_SHORT, staleSaid, staleBanner, litRow, leftOver, titlePaint, titleMark, titleLook, fileMark, fileLook, layerLook, layerGutter, layerText, standingOnThread, standingOnRemark, standingOnDismissed, offeredIn, PANEL_TITLES, PANEL_ORDER, PANEL_LEAD, PANEL_EMPTY, restingOrHere, FOUND_LEAST, nothingYet, counting, foundBlocks, JOIN, foundTitle, CHANGED_MARK, DECLARED, fileRow, leftRow, placeRow, blockOf, aroundRow, windowedBlocks, REMARK_MARK, remarkWhere, wherePart, panelFile, panelWhere, panelBody, panelMark, panelPair, panelSection, PULL_HINT, panelWindow, moreLine, panelText, Screen;
|
|
17618
|
+
var ROW_HEIGHT, COMPOSE_WIDTH, GUTTER_X, CHIP_GAP, MODAL_ROOM, COMPOSE_CHROME, COMPOSE_ACTION_ROWS, reportActions, SENDS, REPLIES, actionsText, SNIPPET_LINES, PALETTE_KEY, PALETTE_TITLE, PALETTE_GAP, PALETTE_CHROME, PENDING_CHROME, keysTitle, PALETTE_WIDTH, PANEL_SHARE, PANEL_MAX, PANEL_FLOOR, PANEL_FOOT, PANEL_QUARTER, PANEL_FIFTH, PANE_CHROME, PANE_EDGES, PANE_INSET, DIFF_FLOOR, COMPOSE_EDGE, CRAMPED, CRAMPED_ROWS, DIFF_CHROME_MOST, BRANCH_WIDTH, BRANCH_NAME_MIN, BRANCH_FIXED, STATE_MIN, EMPTY_LIST, MODAL_MARGIN, shareOf, homeWidth, longestName, longestState, keysOf, commandRow, modalWidth, panelWidth, panelTop, panelRows, composeRoom, laidOut$1, STICKY_MAX, pickPaint, PLAIN_PICKED, PICKED, PLAIN_CURSOR, UNDER_CURSOR, GAP_PAINT, frameRoot, crampedBar, bar, makeList, makeDiffPane, makePanel, makeListParts, makeListText, makeGutter, makeScroller, makeScrim, makeScroll, makePalette, asking, makePaletteParts, makeChoices, LIST_LEAD, windowed, listText, SHEET_GAP, sheetRow, groupedBy, sheetBlock, splitInTwo, sheetPaint, sheetDeep, sheetText, SETTING_LEAD, settingsText, stack, makeBody, makeHome, makeModals, makeBaseParts, makeSettingsParts, makeKeysParts, makeFoundParts, FONTS, logoFont, makeLanding, makeLogo, MAC_KEYS, makeComposeParts, makeCompose, stillThere, quotedFor, clipHead, clipMiddle, clipPath, INDENT_MAX, treeLabel, waitingLabel, inRange, notesOf, remarksOf, notesFor, paired, chipWidth, WAYS_OUT, keptWithin, CHIP_CHUNKS, shortPath, HOME_PATH_MIN, HOME_PATH_CHROME, elide, SUMMARY_LINES, summaryLines, contextLabel, nameRoom, stateRoom, columns, FORGE_SILENT, unaskedForge, branchHeading, atHome, layersCell, baseLabel, stateCell, branchCells, placeLabel, headerParts, panLabel, HEADER_GAP, HEADER_PATH_MIN, headerRoom, headerFitted, fallbackScope, treeMarks, treeTail, treeLine, GUTTER, DIR_LEAD, TITLE_LEAD, FILE_LEAD, STALE_ROOM, STALE_ASKING, STALE_LONG, STALE_MIDDLE, STALE_SHORT, staleSaid, staleBanner, litRow, leftOver, titlePaint, titleMark, titleLook, fileMark, fileLook, layerLook, layerGutter, layerText, standingOnThread, standingOnRemark, standingOnDismissed, offeredIn, PANEL_TITLES, PANEL_ORDER, PANEL_LEAD, PANEL_EMPTY, restingOrHere, FOUND_LEAST, nothingYet, counting, foundBlocks, JOIN, foundTitle, CHANGED_MARK, DECLARED, fileRow, leftRow, placeRow, blockOf, aroundRow, windowedBlocks, REMARK_MARK, remarkWhere, wherePart, panelFile, panelWhere, panelBody, panelMark, panelPair, panelSection, PULL_HINT, panelWindow, moreLine, panelText, Screen;
|
|
17528
17619
|
var init_render = __esmMin((() => {
|
|
17529
17620
|
init_dist();
|
|
17530
17621
|
init_command();
|
|
@@ -17923,8 +18014,25 @@ var init_render = __esmMin((() => {
|
|
|
17923
18014
|
palette: makePaletteParts(renderer),
|
|
17924
18015
|
found: makeFoundParts(renderer),
|
|
17925
18016
|
keys: makeKeysParts(renderer),
|
|
17926
|
-
settings: makeSettingsParts(renderer)
|
|
18017
|
+
settings: makeSettingsParts(renderer),
|
|
18018
|
+
bases: makeBaseParts(renderer)
|
|
17927
18019
|
});
|
|
18020
|
+
makeBaseParts = (renderer) => {
|
|
18021
|
+
const box = makePalette(renderer);
|
|
18022
|
+
const title = bar(renderer, "base-title", palette.faint);
|
|
18023
|
+
const query = asking(renderer, "base-query", "Type a branch, a tag or a commit…");
|
|
18024
|
+
const choices = makeChoices(renderer);
|
|
18025
|
+
box.id = "base";
|
|
18026
|
+
box.add(title);
|
|
18027
|
+
box.add(query);
|
|
18028
|
+
box.add(choices);
|
|
18029
|
+
return {
|
|
18030
|
+
box,
|
|
18031
|
+
title,
|
|
18032
|
+
query,
|
|
18033
|
+
choices
|
|
18034
|
+
};
|
|
18035
|
+
};
|
|
17928
18036
|
makeSettingsParts = (renderer) => {
|
|
17929
18037
|
const box = makePalette(renderer);
|
|
17930
18038
|
const title = bar(renderer, "settings-title", palette.faint);
|
|
@@ -18653,6 +18761,7 @@ var init_render = __esmMin((() => {
|
|
|
18653
18761
|
paletteChoices;
|
|
18654
18762
|
keys;
|
|
18655
18763
|
keysTitle;
|
|
18764
|
+
baseBox;
|
|
18656
18765
|
settings;
|
|
18657
18766
|
settingsTitle;
|
|
18658
18767
|
settingsChoices;
|
|
@@ -18707,10 +18816,11 @@ var init_render = __esmMin((() => {
|
|
|
18707
18816
|
this.settingsChoices = modals.settings.choices;
|
|
18708
18817
|
this.keysTitle = modals.keys.title;
|
|
18709
18818
|
this.keysQuery = modals.keys.query;
|
|
18710
|
-
this.foundQuery = modals.found.query;
|
|
18711
18819
|
this.keysChoices = modals.keys.choices;
|
|
18820
|
+
this.baseBox = modals.bases;
|
|
18712
18821
|
this.found = modals.found.box;
|
|
18713
18822
|
this.foundTitle = modals.found.title;
|
|
18823
|
+
this.foundQuery = modals.found.query;
|
|
18714
18824
|
this.foundPeek = modals.found.peek;
|
|
18715
18825
|
this.foundChoices = modals.found.choices;
|
|
18716
18826
|
this.assemble(renderer);
|
|
@@ -18786,6 +18896,7 @@ var init_render = __esmMin((() => {
|
|
|
18786
18896
|
case "palette": return this.paletteQuery;
|
|
18787
18897
|
case "search": return this.foundQuery;
|
|
18788
18898
|
case "keys": return this.keysQuery;
|
|
18899
|
+
case "base": return this.baseBox.query;
|
|
18789
18900
|
default: return;
|
|
18790
18901
|
}
|
|
18791
18902
|
}
|
|
@@ -18828,6 +18939,7 @@ var init_render = __esmMin((() => {
|
|
|
18828
18939
|
this.paintPalette(state);
|
|
18829
18940
|
this.paintKeys(state);
|
|
18830
18941
|
this.paintSettings(state);
|
|
18942
|
+
this.paintBases(state);
|
|
18831
18943
|
this.paintFound(state);
|
|
18832
18944
|
this.paintReport(state);
|
|
18833
18945
|
this.scrim.visible = state.screen !== "branches" && state.screen !== "review";
|
|
@@ -18858,6 +18970,26 @@ var init_render = __esmMin((() => {
|
|
|
18858
18970
|
this.palette.left = Math.max(1, Math.floor((this.renderer.width - room) / 2));
|
|
18859
18971
|
this.palette.top = panelTop(this.renderer.height, PANEL_QUARTER);
|
|
18860
18972
|
}
|
|
18973
|
+
paintBases(state) {
|
|
18974
|
+
this.baseBox.box.visible = state.screen === "base";
|
|
18975
|
+
if (state.screen !== "base") {
|
|
18976
|
+
this.baseBox.title.content = "";
|
|
18977
|
+
this.baseBox.choices.content = "";
|
|
18978
|
+
return;
|
|
18979
|
+
}
|
|
18980
|
+
const shown = refsShown(state);
|
|
18981
|
+
const room = panelWidth(this.renderer.width);
|
|
18982
|
+
const here = selectedBranch(state);
|
|
18983
|
+
const on = here === void 0 ? "" : `${here.base}${here.basis === "set" ? "" : ", adiff's guess"}`;
|
|
18984
|
+
this.baseBox.title.content = clip(`Base for ${here?.branch ?? "this branch"}${on.length === 0 ? "" : ` — now ${on}`}`, room - MODAL_ROOM);
|
|
18985
|
+
this.baseBox.query.visible = true;
|
|
18986
|
+
const tall = Math.min(panelRows(this.renderer.height, PANEL_QUARTER), shown.length + PALETTE_CHROME + 1);
|
|
18987
|
+
this.baseBox.choices.content = listText(shown.map((ref) => clip(` ${ref}`, room - MODAL_ROOM)), Math.min(state.refIndex, Math.max(0, shown.length - 1)), Math.max(1, tall - PALETTE_CHROME - 1));
|
|
18988
|
+
this.baseBox.box.height = tall;
|
|
18989
|
+
this.baseBox.box.width = room;
|
|
18990
|
+
this.baseBox.box.left = Math.max(1, Math.floor((this.renderer.width - room) / 2));
|
|
18991
|
+
this.baseBox.box.top = panelTop(this.renderer.height, PANEL_QUARTER);
|
|
18992
|
+
}
|
|
18861
18993
|
paintSettings(state) {
|
|
18862
18994
|
this.settings.visible = state.screen === "settings";
|
|
18863
18995
|
if (state.screen !== "settings") {
|
|
@@ -19044,7 +19176,8 @@ var init_render = __esmMin((() => {
|
|
|
19044
19176
|
this.palette,
|
|
19045
19177
|
this.found,
|
|
19046
19178
|
this.keys,
|
|
19047
|
-
this.settings
|
|
19179
|
+
this.settings,
|
|
19180
|
+
this.baseBox.box
|
|
19048
19181
|
]);
|
|
19049
19182
|
}
|
|
19050
19183
|
watchChips() {
|
|
@@ -19269,7 +19402,8 @@ var init_display = __esmMin((() => {
|
|
|
19269
19402
|
ASKING = [
|
|
19270
19403
|
"palette",
|
|
19271
19404
|
"keys",
|
|
19272
|
-
"search"
|
|
19405
|
+
"search",
|
|
19406
|
+
"base"
|
|
19273
19407
|
];
|
|
19274
19408
|
Display = class extends Service()("adiff/Display") {};
|
|
19275
19409
|
paintWith = (screen) => fn("Tui.paint")(function* (state) {
|
|
@@ -19522,7 +19656,8 @@ var init_app = __esmMin((() => {
|
|
|
19522
19656
|
LISTENS = /* @__PURE__ */ new Set([
|
|
19523
19657
|
"keys",
|
|
19524
19658
|
"palette",
|
|
19525
|
-
"search"
|
|
19659
|
+
"search",
|
|
19660
|
+
"base"
|
|
19526
19661
|
]);
|
|
19527
19662
|
WRITES = /* @__PURE__ */ new Set(["compose", "report"]);
|
|
19528
19663
|
OVER = /* @__PURE__ */ new Set([
|
|
@@ -19531,7 +19666,8 @@ var init_app = __esmMin((() => {
|
|
|
19531
19666
|
"keys",
|
|
19532
19667
|
"palette",
|
|
19533
19668
|
"search",
|
|
19534
|
-
"settings"
|
|
19669
|
+
"settings",
|
|
19670
|
+
"base"
|
|
19535
19671
|
]);
|
|
19536
19672
|
overReview = (screen) => OVER.has(screen);
|
|
19537
19673
|
writesInto = (screen) => WRITES.has(screen);
|
|
@@ -19984,6 +20120,9 @@ var init_app = __esmMin((() => {
|
|
|
19984
20120
|
"search.open": () => this.findSelection(),
|
|
19985
20121
|
"search.jump": () => this.runFinder(),
|
|
19986
20122
|
"review.reload": () => this.state.screen === "branches" ? this.reloadList() : this.reloadBranch(),
|
|
20123
|
+
"base.open": () => this.openBases(),
|
|
20124
|
+
"base.set": () => this.setBaseHere(),
|
|
20125
|
+
"base.clear": () => this.clearBaseHere(),
|
|
19987
20126
|
"report.open": () => sync(() => this.commit(reduce(this.measured(), "report.open"))),
|
|
19988
20127
|
back: () => this.goBack(),
|
|
19989
20128
|
"report.send": () => this.sendReport(),
|
|
@@ -20072,7 +20211,8 @@ var init_app = __esmMin((() => {
|
|
|
20072
20211
|
this.commit({
|
|
20073
20212
|
...this.state,
|
|
20074
20213
|
query: clean,
|
|
20075
|
-
paletteIndex: 0
|
|
20214
|
+
paletteIndex: 0,
|
|
20215
|
+
refIndex: 0
|
|
20076
20216
|
});
|
|
20077
20217
|
if (this.state.screen === "search") this.lookSoon(clean);
|
|
20078
20218
|
}
|
|
@@ -20085,6 +20225,58 @@ var init_app = __esmMin((() => {
|
|
|
20085
20225
|
if (text === this.state.draft) return;
|
|
20086
20226
|
this.commit(withDraft(this.state, text));
|
|
20087
20227
|
}
|
|
20228
|
+
openBases() {
|
|
20229
|
+
return gen({ self: this }, function* () {
|
|
20230
|
+
const branch = selectedBranch(this.state);
|
|
20231
|
+
if (branch === void 0) return;
|
|
20232
|
+
const refs = yield* listRefs(this.repo);
|
|
20233
|
+
this.commit(withRefs(this.state, refs.filter((ref) => ref !== branch.branch)));
|
|
20234
|
+
});
|
|
20235
|
+
}
|
|
20236
|
+
basedOnRef(ref) {
|
|
20237
|
+
return gen({ self: this }, function* () {
|
|
20238
|
+
const branch = selectedBranch(this.state);
|
|
20239
|
+
if (branch === void 0) return;
|
|
20240
|
+
const held = yield* result(setBase(this.repo, branch.branch, ref));
|
|
20241
|
+
if (isFailure(held)) {
|
|
20242
|
+
this.commit(withNotice(this.state, `${ref} names nothing here`));
|
|
20243
|
+
return;
|
|
20244
|
+
}
|
|
20245
|
+
yield* this.afterBase(branch.branch, `based on ${ref}`);
|
|
20246
|
+
});
|
|
20247
|
+
}
|
|
20248
|
+
clearBaseHere() {
|
|
20249
|
+
return gen({ self: this }, function* () {
|
|
20250
|
+
const branch = selectedBranch(this.state);
|
|
20251
|
+
if (branch === void 0) return;
|
|
20252
|
+
yield* clearBase(this.repo, branch.branch);
|
|
20253
|
+
yield* this.afterBase(branch.branch, "the base is adiff's guess again");
|
|
20254
|
+
});
|
|
20255
|
+
}
|
|
20256
|
+
afterBase(branch, said) {
|
|
20257
|
+
return gen({ self: this }, function* () {
|
|
20258
|
+
const listed = yield* listBranches(this.repo, this.base);
|
|
20259
|
+
const back = {
|
|
20260
|
+
...this.state,
|
|
20261
|
+
screen: this.state.returnTo,
|
|
20262
|
+
query: ""
|
|
20263
|
+
};
|
|
20264
|
+
const held = withBranches(back, listed);
|
|
20265
|
+
const at = listed.findIndex((one) => one.branch === branch);
|
|
20266
|
+
this.commit(withNotice(at === -1 ? held : {
|
|
20267
|
+
...held,
|
|
20268
|
+
branchIndex: at
|
|
20269
|
+
}, said));
|
|
20270
|
+
if (this.state.screen !== "review") return;
|
|
20271
|
+
this.commit(yield* this.readBranch(branch));
|
|
20272
|
+
yield* this.fetchRemarks();
|
|
20273
|
+
yield* this.loadSource();
|
|
20274
|
+
});
|
|
20275
|
+
}
|
|
20276
|
+
setBaseHere() {
|
|
20277
|
+
const ref = refHere(this.state);
|
|
20278
|
+
return ref === void 0 ? void_ : this.basedOnRef(ref);
|
|
20279
|
+
}
|
|
20088
20280
|
runChoice() {
|
|
20089
20281
|
return gen({ self: this }, function* () {
|
|
20090
20282
|
const chosen = paletteChoice(this.state);
|
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.157",
|
|
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": {
|
package/skills/adiff/SKILL.md
CHANGED
|
@@ -257,9 +257,9 @@ used to cover less than you thought now fails loudly instead.
|
|
|
257
257
|
`total` counts hunks. `covered` counts the ones where every changed line sits inside a layer, and
|
|
258
258
|
`partial` the ones a layer explains only some of. `uncovered` names the runs of changed lines no
|
|
259
259
|
layer claims, so it reads as line numbers a reviewer would otherwise have to find alone: claim them
|
|
260
|
-
and set the layers again. Done means `uncovered` is empty. `vanished` names
|
|
261
|
-
that this branch does not change, which usually means a typo in a path. Read
|
|
262
|
-
with:
|
|
260
|
+
and set the layers again. Done means `uncovered` is empty and `shared` is zero. `vanished` names
|
|
261
|
+
paths a layer points at that this branch does not change, which usually means a typo in a path. Read
|
|
262
|
+
it back at any time with:
|
|
263
263
|
|
|
264
264
|
```bash
|
|
265
265
|
adiff layers show --worktree . --fields covered,partial,total,uncovered
|
|
@@ -271,8 +271,15 @@ uncovered run at 395-409 — line numbers past the end of the file as it now sta
|
|
|
271
271
|
new file cannot reach them; only a span whose `end` runs past the end of the file can. Write one, or
|
|
272
272
|
say the run is unreachable, rather than reading the leftover as a layer you forgot.
|
|
273
273
|
|
|
274
|
-
That
|
|
275
|
-
happens to it,
|
|
274
|
+
That case aside, claim the runs you explain and nothing more. A span from line 1 to past the end of
|
|
275
|
+
the file covers whatever happens to it, and it is the wrong trade: the terminal scopes a layer to the
|
|
276
|
+
lines it claims, so a layer claiming the whole file draws the whole diff, and eleven layers over one
|
|
277
|
+
file draw it eleven times. Staleness is cheap by comparison — adiff says when a set is stale and the
|
|
278
|
+
reviewer asks for another.
|
|
279
|
+
|
|
280
|
+
`shared` in the answer counts the hunks more than one layer claims. Coverage cannot see this: a
|
|
281
|
+
reading order whose layers each claim the whole diff reports the same `covered` as one whose layers
|
|
282
|
+
each claim their own run. Done means `uncovered` is empty **and** `shared` is zero.
|
|
276
283
|
|
|
277
284
|
Setting layers again supersedes the previous set and bumps `version`; the set records the commit it
|
|
278
285
|
was written for, and adiff reports it as `stale` once the branch moves past that commit. Once a
|