@eliya-oss/agent-diff 0.1.0-alpha.93 → 0.1.0-alpha.94
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 +9 -8
- 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.94
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- The worktrees are read together rather than one after another, taking about 290ms off opening a review on a machine holding thirteen of them.
|
|
8
|
+
|
|
3
9
|
## 0.1.0-alpha.93
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -8426,12 +8426,13 @@ var init_run = __esmMin((() => {
|
|
|
8426
8426
|
}));
|
|
8427
8427
|
//#endregion
|
|
8428
8428
|
//#region src/service/git/service.ts
|
|
8429
|
-
var GREP_CONTEXT, DEFAULT_BRANCH_CANDIDATES, STAT, Git, parseStat, readEntries, baseNames, mergeBases, findDefaultBranch, defaultBranch, mergeBaseOf, toWorktree, branchTips, parents, parentOf, splitLines, absent, readText, settled, listWorktrees, readDiff, readStat, readSource, readBlob, readGrep, shape, GitLive;
|
|
8429
|
+
var GREP_CONTEXT, AT_ONCE$1, DEFAULT_BRANCH_CANDIDATES, STAT, Git, parseStat, readEntries, baseNames, mergeBases, findDefaultBranch, defaultBranch, mergeBaseOf, toWorktree, branchTips, parents, parentOf, splitLines, absent, readText, settled, seenAs, listWorktrees, readDiff, readStat, readSource, readBlob, readGrep, shape, GitLive;
|
|
8430
8430
|
var init_service$2 = __esmMin((() => {
|
|
8431
8431
|
init_dist();
|
|
8432
8432
|
init_error$3();
|
|
8433
8433
|
init_run();
|
|
8434
8434
|
GREP_CONTEXT = 2;
|
|
8435
|
+
AT_ONCE$1 = 8;
|
|
8435
8436
|
DEFAULT_BRANCH_CANDIDATES = [
|
|
8436
8437
|
"origin/master",
|
|
8437
8438
|
"origin/main",
|
|
@@ -8549,6 +8550,10 @@ var init_service$2 = __esmMin((() => {
|
|
|
8549
8550
|
}).pipe(map(some), catchTag("FileUnreadable", () => absent));
|
|
8550
8551
|
});
|
|
8551
8552
|
settled = (path) => promise(() => realpath(path).catch(() => resolve(path)));
|
|
8553
|
+
seenAs = fn("Git.seenAs")(function* (entry, base, opened) {
|
|
8554
|
+
const path = yield* settled(entry.path);
|
|
8555
|
+
return yield* toWorktree(entry, base, path === opened);
|
|
8556
|
+
});
|
|
8552
8557
|
listWorktrees = fn("Git.worktrees")(function* (repo) {
|
|
8553
8558
|
const porcelain = yield* gitOrEmpty(repo, [
|
|
8554
8559
|
"worktree",
|
|
@@ -8558,12 +8563,8 @@ var init_service$2 = __esmMin((() => {
|
|
|
8558
8563
|
const base = yield* defaultBranch(repo);
|
|
8559
8564
|
const entries = readEntries(porcelain);
|
|
8560
8565
|
const opened = yield* settled(repo);
|
|
8561
|
-
const
|
|
8562
|
-
|
|
8563
|
-
const path = yield* settled(entry.path);
|
|
8564
|
-
found.push(yield* toWorktree(entry, base, path === opened));
|
|
8565
|
-
}
|
|
8566
|
-
return found;
|
|
8566
|
+
const read = (entry) => seenAs(entry, base, opened);
|
|
8567
|
+
return yield* forEach(entries, read, { concurrency: AT_ONCE$1 });
|
|
8567
8568
|
});
|
|
8568
8569
|
readDiff = fn("Git.diff")(function* (worktree, context, only) {
|
|
8569
8570
|
const target = worktree.base.length > 0 ? worktree.base : "HEAD";
|
|
@@ -9815,7 +9816,7 @@ var init_pane = __esmMin((() => {
|
|
|
9815
9816
|
init_commands();
|
|
9816
9817
|
init_init();
|
|
9817
9818
|
init_pane();
|
|
9818
|
-
var version$1 = "0.1.0-alpha.
|
|
9819
|
+
var version$1 = "0.1.0-alpha.94";
|
|
9819
9820
|
//#endregion
|
|
9820
9821
|
//#region src/cli/upgrade.ts
|
|
9821
9822
|
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;
|
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.94",
|
|
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": {
|