@eliya-oss/agent-diff 0.1.0-alpha.90 → 0.1.0-alpha.92
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 +27 -12
- 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.92
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Opening the hidden lines in a diff reads that one file at whole-file context rather than every file on the branch.
|
|
8
|
+
|
|
9
|
+
## 0.1.0-alpha.91
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Prose a layer writes about deleted code is shown beside that code, rather than dropped because the file has no new side.
|
|
14
|
+
|
|
3
15
|
## 0.1.0-alpha.90
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -9110,7 +9110,7 @@ var init_error$1 = __esmMin((() => {
|
|
|
9110
9110
|
}));
|
|
9111
9111
|
//#endregion
|
|
9112
9112
|
//#region src/cli/commands.ts
|
|
9113
|
-
var CONTEXT, WHOLE_FILE$1, POLL, AUTO, askedFor, basedOn, worktreeNamed, findBranch, baseFor, patchesOf, findPatch, rowsCovering, waitingOn, AT_ONCE, summaryOf, summaryFor, listBranches, blobOf, vouchIn, toggleVouch, readingOf, progressIn, reviewProgress, bodyOf, saidTo, spunOf, sentOf, sentIn, listSent, commentIn, submitComment, without$1, submitReply, listPatches, flatten, threadBefore, takeComments, repoOf$1, worktreeOf$1, branchAt, awaitComments, saveReport, fileSource, fileBefore, saveWrap, saveSticky, setBase, clearBase, markRead;
|
|
9113
|
+
var CONTEXT, WHOLE_FILE$1, POLL, AUTO, askedFor, basedOn, worktreeNamed, findBranch, baseFor, patchesOf, findPatch, rowsCovering, waitingOn, AT_ONCE, summaryOf, summaryFor, listBranches, blobOf, vouchIn, toggleVouch, readingOf, progressIn, reviewProgress, bodyOf, saidTo, spunOf, sentOf, sentIn, listSent, commentIn, submitComment, without$1, submitReply, listPatches, patchIn, flatten, threadBefore, takeComments, repoOf$1, worktreeOf$1, branchAt, awaitComments, saveReport, fileSource, fileBefore, saveWrap, saveSticky, setBase, clearBase, markRead;
|
|
9114
9114
|
var init_commands = __esmMin((() => {
|
|
9115
9115
|
init_dist();
|
|
9116
9116
|
init_patch();
|
|
@@ -9422,10 +9422,14 @@ var init_commands = __esmMin((() => {
|
|
|
9422
9422
|
});
|
|
9423
9423
|
return batch;
|
|
9424
9424
|
});
|
|
9425
|
-
listPatches = fn("Cli.listPatches")(function* (repo, branch, context = CONTEXT) {
|
|
9425
|
+
listPatches = fn("Cli.listPatches")(function* (repo, branch, context = CONTEXT, only) {
|
|
9426
9426
|
const worktree = yield* findBranch(repo, branch);
|
|
9427
9427
|
const git = yield* Git;
|
|
9428
|
-
return parsePatches(yield* git.diff(worktree, context));
|
|
9428
|
+
return parsePatches(yield* git.diff(worktree, context, only));
|
|
9429
|
+
});
|
|
9430
|
+
patchIn = fn("Cli.patchIn")(function* (worktree, context, only) {
|
|
9431
|
+
const git = yield* Git;
|
|
9432
|
+
return parsePatches(yield* git.diff(worktree, context, only));
|
|
9429
9433
|
});
|
|
9430
9434
|
flatten = (batches) => batches.flatMap((batch) => batch.comments.map((comment) => ({
|
|
9431
9435
|
id: comment.id,
|
|
@@ -9811,7 +9815,7 @@ var init_pane = __esmMin((() => {
|
|
|
9811
9815
|
init_commands();
|
|
9812
9816
|
init_init();
|
|
9813
9817
|
init_pane();
|
|
9814
|
-
var version$1 = "0.1.0-alpha.
|
|
9818
|
+
var version$1 = "0.1.0-alpha.92";
|
|
9815
9819
|
//#endregion
|
|
9816
9820
|
//#region src/cli/upgrade.ts
|
|
9817
9821
|
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;
|
|
@@ -13770,7 +13774,7 @@ var init_theme = __esmMin((() => {
|
|
|
13770
13774
|
}));
|
|
13771
13775
|
//#endregion
|
|
13772
13776
|
//#region src/tui/diffview.ts
|
|
13773
|
-
var WASH, NOTE_MIN, ANSWER_MARK, REPLY_MARK, OVERSCAN, SIGN_WIDTH, SCROLL_ROWS, PAN_COLUMNS, WAYS, notchesIn, takenOver, wheelTo, SIGNS, numberFor, DiffView, startsOf, bareOf, noteKey, keyOf, groupOf, isChrome, alike, heldAt, sameLine, NO_SPANS, lineStarts, overLine, shifted, acrossLines, spansByLine, textAt, noteSpans, NOTE_PAINT, wrap, headOf, spokenLines, answerLines, noteLines, noteRows, proseRows, proseAt, notesAt, codeRow, rowsFor, layout, lineNumbers, BARE_SIGN, signFor, lineSigns, sideLineOf;
|
|
13777
|
+
var WASH, NOTE_MIN, ANSWER_MARK, REPLY_MARK, OVERSCAN, SIGN_WIDTH, SCROLL_ROWS, PAN_COLUMNS, WAYS, notchesIn, takenOver, wheelTo, SIGNS, numberFor, DiffView, startsOf, bareOf, noteKey, keyOf, groupOf, isChrome, alike, heldAt, sameLine, NO_SPANS, lineStarts, overLine, shifted, acrossLines, spansByLine, textAt, noteSpans, NOTE_PAINT, wrap, headOf, spokenLines, answerLines, noteLines, noteRows, proseRows, freshLines, proseAt, notesAt, codeRow, rowsFor, layout, lineNumbers, BARE_SIGN, signFor, lineSigns, sideLineOf;
|
|
13774
13778
|
var init_diffview = __esmMin((() => {
|
|
13775
13779
|
init_dist();
|
|
13776
13780
|
init_patch();
|
|
@@ -13978,7 +13982,8 @@ var init_diffview = __esmMin((() => {
|
|
|
13978
13982
|
notes,
|
|
13979
13983
|
room,
|
|
13980
13984
|
gaps,
|
|
13981
|
-
prose
|
|
13985
|
+
prose,
|
|
13986
|
+
fresh: freshLines(patch)
|
|
13982
13987
|
});
|
|
13983
13988
|
this.starts = startsOf(this.display);
|
|
13984
13989
|
this.code.filetype = pathToFiletype(patch.path) ?? "text";
|
|
@@ -14358,10 +14363,16 @@ var init_diffview = __esmMin((() => {
|
|
|
14358
14363
|
gap: false,
|
|
14359
14364
|
prose: true
|
|
14360
14365
|
}));
|
|
14361
|
-
|
|
14366
|
+
freshLines = (patch) => new Set(patch.rows.flatMap((row) => {
|
|
14362
14367
|
const line = sideLineOf(row, "new");
|
|
14368
|
+
return line === void 0 ? [] : [line];
|
|
14369
|
+
}));
|
|
14370
|
+
proseAt = (plan, row, after) => {
|
|
14371
|
+
const fresh = sideLineOf(row, "new");
|
|
14372
|
+
const line = fresh ?? sideLineOf(row, "old");
|
|
14363
14373
|
if (line === void 0) return [];
|
|
14364
|
-
|
|
14374
|
+
const wanted = plan.prose.filter((entry) => entry.after === after && entry.line === line);
|
|
14375
|
+
return fresh !== void 0 ? wanted : wanted.filter(() => !plan.fresh.has(line));
|
|
14365
14376
|
};
|
|
14366
14377
|
notesAt = (plan, row) => plan.notes.filter((note) => sideLineOf(row, note.side) === note.line).flatMap((note, at) => noteRows(note, row.index, plan.room, at + 1));
|
|
14367
14378
|
codeRow = (plan, row) => ({
|
|
@@ -16311,9 +16322,12 @@ var init_app = __esmMin((() => {
|
|
|
16311
16322
|
loadFull() {
|
|
16312
16323
|
return gen({ self: this }, function* () {
|
|
16313
16324
|
const branch = selectedBranch(this.state);
|
|
16314
|
-
|
|
16315
|
-
|
|
16316
|
-
this.
|
|
16325
|
+
const patch = selectedPatch(this.state);
|
|
16326
|
+
if (branch === void 0 || patch === void 0) return;
|
|
16327
|
+
if (this.state.full.some((one) => one.path === patch.path)) return;
|
|
16328
|
+
const worktree = this.worktreeFor(branch.branch);
|
|
16329
|
+
const full = worktree === void 0 ? yield* listPatches(this.repo, branch.branch, WHOLE_FILE, patch.path) : yield* patchIn(worktree, WHOLE_FILE, patch.path);
|
|
16330
|
+
this.commit(withFull(this.state, [...this.state.full, ...full]));
|
|
16317
16331
|
});
|
|
16318
16332
|
}
|
|
16319
16333
|
onKey(key, forced) {
|
|
@@ -16816,7 +16830,8 @@ var init_app = __esmMin((() => {
|
|
|
16816
16830
|
const branch = selectedBranch(this.state);
|
|
16817
16831
|
if (branch === void 0 || next === this.state.context) return;
|
|
16818
16832
|
const line = sourceLineAt(this.state, this.state.cursor);
|
|
16819
|
-
const
|
|
16833
|
+
const worktree = this.worktreeFor(branch.branch);
|
|
16834
|
+
const patches = worktree === void 0 ? yield* listPatches(this.repo, branch.branch, next) : yield* patchIn(worktree, next);
|
|
16820
16835
|
const widened = withContext(this.state, next, patches, 0);
|
|
16821
16836
|
const patch = selectedPatch(widened);
|
|
16822
16837
|
const cursor = patch === void 0 || line === void 0 ? 0 : rowAtSourceLine(patch, line);
|
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.92",
|
|
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": {
|