@eliya-oss/agent-diff 0.1.0-alpha.61 → 0.1.0-alpha.62

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eliya-oss/agent-diff
2
2
 
3
+ ## 0.1.0-alpha.62
4
+
5
+ ### Patch Changes
6
+
7
+ - Panning right reaches the end of a long line. The last few columns sat under the line numbers and the diff sign, and no amount of panning could bring them out, so a wide line always stopped short of wherever it really ended.
8
+
3
9
  ## 0.1.0-alpha.61
4
10
 
5
11
  ### Patch Changes
package/dist/main.js CHANGED
@@ -9448,7 +9448,7 @@ var init_pane = __esmMin((() => {
9448
9448
  init_commands();
9449
9449
  init_init();
9450
9450
  init_pane();
9451
- var version$1 = "0.1.0-alpha.61";
9451
+ var version$1 = "0.1.0-alpha.62";
9452
9452
  //#endregion
9453
9453
  //#region src/cli/upgrade.ts
9454
9454
  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;
@@ -13491,9 +13491,12 @@ var init_diffview = __esmMin((() => {
13491
13491
  }
13492
13492
  return spans;
13493
13493
  }
13494
+ hidden() {
13495
+ return Math.max(0, this.code.x - this.numbers.x) + SIGN_WIDTH;
13496
+ }
13494
13497
  feed() {
13495
13498
  const spans = noteSpans(this.display, this.held);
13496
- this.code.content = textAt(this.display, this.held);
13499
+ this.code.content = textAt(this.display, this.held, this.hidden());
13497
13500
  this.code.onHighlight = (highlights) => {
13498
13501
  return [...(this.ownSpans() ?? highlights).filter((highlight) => !spans.some(([from, to]) => highlight[0] < to && highlight[1] > from)), ...spans];
13499
13502
  };
@@ -13691,7 +13694,13 @@ var init_diffview = __esmMin((() => {
13691
13694
  ]);
13692
13695
  return held;
13693
13696
  };
13694
- textAt = (display, pan) => display.map((entry) => heldAt(entry, pan)).join("\n");
13697
+ textAt = (display, pan, covered = 0) => {
13698
+ const lines = display.map((entry) => heldAt(entry, pan));
13699
+ if (covered === 0) return lines.join("\n");
13700
+ const widest = lines.reduce((most, line) => Math.max(most, line.length), 0);
13701
+ const last = lines.length - 1;
13702
+ return lines.map((line, at) => at === last ? line.padEnd(widest + covered) : line).join("\n");
13703
+ };
13695
13704
  noteSpans = (display, pan) => {
13696
13705
  const spans = [];
13697
13706
  let at = 0;
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.61",
26
+ "version": "0.1.0-alpha.62",
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": {