@eliya-oss/agent-diff 0.1.0-alpha.22 → 0.1.0-alpha.23
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 +8 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -14226,7 +14226,7 @@ const commands = [
|
|
|
14226
14226
|
title: "Find a command",
|
|
14227
14227
|
category: "General",
|
|
14228
14228
|
keys: ["ctrl+p"],
|
|
14229
|
-
screens: ["review"],
|
|
14229
|
+
screens: ["review", "pending"],
|
|
14230
14230
|
hint: "commands",
|
|
14231
14231
|
listed: false
|
|
14232
14232
|
}),
|
|
@@ -15228,8 +15228,11 @@ var DiffView = class {
|
|
|
15228
15228
|
}
|
|
15229
15229
|
this.fitWrapWidth();
|
|
15230
15230
|
}
|
|
15231
|
+
panLimit() {
|
|
15232
|
+
return this.wrapped ? 0 : Math.max(this.code.maxScrollX, this.pinned.maxScrollX);
|
|
15233
|
+
}
|
|
15231
15234
|
setPan(columns) {
|
|
15232
|
-
const wanted =
|
|
15235
|
+
const wanted = Math.max(0, Math.min(this.panLimit(), columns));
|
|
15233
15236
|
if (wanted !== this.held) {
|
|
15234
15237
|
this.held = wanted;
|
|
15235
15238
|
this.feed();
|
|
@@ -15237,9 +15240,6 @@ var DiffView = class {
|
|
|
15237
15240
|
if (this.code.scrollX !== wanted) this.code.scrollX = wanted;
|
|
15238
15241
|
if (this.pinned.scrollX !== wanted) this.pinned.scrollX = wanted;
|
|
15239
15242
|
}
|
|
15240
|
-
panned() {
|
|
15241
|
-
return this.code.scrollX;
|
|
15242
|
-
}
|
|
15243
15243
|
fitWrapWidth() {
|
|
15244
15244
|
const room = this.numbers.width - Math.max(0, this.code.x - this.numbers.x);
|
|
15245
15245
|
const wanted = this.wrapped && room > 0 ? room : "100%";
|
|
@@ -15830,7 +15830,7 @@ const branchCells = (branch, here, room) => ({
|
|
|
15830
15830
|
layers: layersCell(branch),
|
|
15831
15831
|
state: ""
|
|
15832
15832
|
});
|
|
15833
|
-
const headerParts = (state, branch, path) => [
|
|
15833
|
+
const headerParts = (state, branch, path, pan) => [
|
|
15834
15834
|
branch,
|
|
15835
15835
|
path,
|
|
15836
15836
|
`${state.patchIndex + 1}/${state.patches.length}`,
|
|
@@ -15838,7 +15838,7 @@ const headerParts = (state, branch, path) => [
|
|
|
15838
15838
|
state.staged === 0 ? "" : `${state.staged} staged`,
|
|
15839
15839
|
contextLabel(state.context),
|
|
15840
15840
|
hiddenLines(state) === 0 ? "" : `⋯ ${hiddenLines(state)} lines hidden`,
|
|
15841
|
-
|
|
15841
|
+
pan === 0 ? "" : `→ ${pan} columns`
|
|
15842
15842
|
];
|
|
15843
15843
|
const fallbackScope = (state, top) => {
|
|
15844
15844
|
const scope = (selectedPatch(state)?.hunks.findLast((hunk) => hunk.startRow < top))?.scope ?? "";
|
|
@@ -16037,7 +16037,7 @@ var Screen = class {
|
|
|
16037
16037
|
const branch = selectedBranch(state);
|
|
16038
16038
|
if (atHome(state)) return t`${fg(palette.faint)("")}`;
|
|
16039
16039
|
const patch = selectedPatch(state);
|
|
16040
|
-
const [name = "", ...rest] = headerParts(state, branch?.branch ?? "", patch?.path ?? "").filter((part) => part.length > 0);
|
|
16040
|
+
const [name = "", ...rest] = headerParts(state, branch?.branch ?? "", patch?.path ?? "", Math.min(state.pan, this.view.panLimit())).filter((part) => part.length > 0);
|
|
16041
16041
|
return t`${fg(palette.ink)(name)} ${fg(palette.muted)(rest.join(" "))}`;
|
|
16042
16042
|
}
|
|
16043
16043
|
footerText(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.23",
|
|
27
27
|
"description": "Review agent work across git worktrees like a PR, and hand the comments back to the agent.",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"repository": {
|