@eliya-oss/agent-diff 0.1.0-alpha.15 → 0.1.0-alpha.16
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 +20 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -12956,7 +12956,7 @@ const commands = [
|
|
|
12956
12956
|
title: "Read the branch again",
|
|
12957
12957
|
category: "Review",
|
|
12958
12958
|
keys: ["r"],
|
|
12959
|
-
screens: ["review"],
|
|
12959
|
+
screens: ["branches", "review"],
|
|
12960
12960
|
hint: "reload"
|
|
12961
12961
|
}),
|
|
12962
12962
|
command({
|
|
@@ -14722,7 +14722,7 @@ var Screen = class {
|
|
|
14722
14722
|
const pane = homeWidth(this.renderer.width);
|
|
14723
14723
|
const room = Math.max(HOME_PATH_MIN, pane - many.length - HOME_PATH_CHROME);
|
|
14724
14724
|
this.landing.content = `${elide(shortPath(this.repo), room)} · ${many}`;
|
|
14725
|
-
this.landingKeys.content = this.
|
|
14725
|
+
this.landingKeys.content = this.homeKeys(state);
|
|
14726
14726
|
this.diffPane.visible = state.screen !== "branches" && !(state.screen === "palette" && state.returnTo === "branches");
|
|
14727
14727
|
if (this.diffPane.visible) this.paintDiff(state);
|
|
14728
14728
|
this.paintPane(state);
|
|
@@ -14913,6 +14913,11 @@ var Screen = class {
|
|
|
14913
14913
|
this.landingKeys.content = this.chipRow();
|
|
14914
14914
|
if (this.shown !== void 0) this.footer.content = this.footerText(this.shown);
|
|
14915
14915
|
}
|
|
14916
|
+
homeKeys(state) {
|
|
14917
|
+
const chips = this.chipRow().chunks;
|
|
14918
|
+
if (state.notice.length === 0) return new StyledText(chips);
|
|
14919
|
+
return new StyledText([...chips, fg(palette.attention)(` ${state.notice}`)]);
|
|
14920
|
+
}
|
|
14916
14921
|
chipRow() {
|
|
14917
14922
|
return new StyledText(this.chips.flatMap((chip, index) => {
|
|
14918
14923
|
const lit = index === this.hovered;
|
|
@@ -15231,7 +15236,7 @@ var App = class {
|
|
|
15231
15236
|
"rail.toggle": () => this.commitSynced("rail.toggle"),
|
|
15232
15237
|
"file.vouch": () => this.vouch(false),
|
|
15233
15238
|
"file.vouch.next": () => this.vouch(true),
|
|
15234
|
-
"review.reload": () => this.reloadBranch(),
|
|
15239
|
+
"review.reload": () => this.state.screen === "branches" ? this.reloadList() : this.reloadBranch(),
|
|
15235
15240
|
"pending.open": () => this.openPending(),
|
|
15236
15241
|
"pending.edit": () => this.editStagedComment(),
|
|
15237
15242
|
"pending.drop": () => this.dropStagedComment(),
|
|
@@ -15299,6 +15304,18 @@ var App = class {
|
|
|
15299
15304
|
this.commit(await this.readBranch(branch.branch));
|
|
15300
15305
|
await this.loadSource();
|
|
15301
15306
|
}
|
|
15307
|
+
async reloadList() {
|
|
15308
|
+
const here = selectedBranch(this.state)?.branch;
|
|
15309
|
+
const branches = await this.run(listBranches(this.repo));
|
|
15310
|
+
const read = withBranches(this.state, branches);
|
|
15311
|
+
const at = branches.findIndex((candidate) => candidate.branch === here);
|
|
15312
|
+
const kept = at === -1 ? read : {
|
|
15313
|
+
...read,
|
|
15314
|
+
branchIndex: at
|
|
15315
|
+
};
|
|
15316
|
+
this.commit(withNoticeHere(kept, "read the list again"));
|
|
15317
|
+
this.dispatchTask(() => this.loadPulls());
|
|
15318
|
+
}
|
|
15302
15319
|
async reloadBranch() {
|
|
15303
15320
|
const branch = selectedBranch(this.state);
|
|
15304
15321
|
if (branch === void 0) return;
|
package/package.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bin": {
|
|
22
22
|
"adiff": "./bin/adiff.js"
|
|
23
23
|
},
|
|
24
|
-
"version": "0.1.0-alpha.
|
|
24
|
+
"version": "0.1.0-alpha.16",
|
|
25
25
|
"description": "Review agent work across git worktrees like a PR, and hand the comments back to the agent.",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"repository": {
|