@eliya-oss/agent-diff 0.1.0-alpha.91 → 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 +6 -0
- package/dist/main.js +16 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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;
|
|
@@ -16318,9 +16322,12 @@ var init_app = __esmMin((() => {
|
|
|
16318
16322
|
loadFull() {
|
|
16319
16323
|
return gen({ self: this }, function* () {
|
|
16320
16324
|
const branch = selectedBranch(this.state);
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
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]));
|
|
16324
16331
|
});
|
|
16325
16332
|
}
|
|
16326
16333
|
onKey(key, forced) {
|
|
@@ -16823,7 +16830,8 @@ var init_app = __esmMin((() => {
|
|
|
16823
16830
|
const branch = selectedBranch(this.state);
|
|
16824
16831
|
if (branch === void 0 || next === this.state.context) return;
|
|
16825
16832
|
const line = sourceLineAt(this.state, this.state.cursor);
|
|
16826
|
-
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);
|
|
16827
16835
|
const widened = withContext(this.state, next, patches, 0);
|
|
16828
16836
|
const patch = selectedPatch(widened);
|
|
16829
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": {
|