@eliya-oss/agent-diff 0.1.0-alpha.122 → 0.1.0-alpha.123

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.123
4
+
5
+ ### Patch Changes
6
+
7
+ - A change you can only see in the whitespace is now visible. Adding a trailing space or turning spaces into a tab showed a removed line and an added line that read identically, with nothing to tell them apart. Trailing spaces and tabs on a changed line are marked. Copying still takes the bytes that are in the file.
8
+
3
9
  ## 0.1.0-alpha.122
4
10
 
5
11
  ### Patch Changes
package/dist/main.js CHANGED
@@ -10929,7 +10929,7 @@ var init_pane = __esmMin((() => {
10929
10929
  init_drafts();
10930
10930
  init_init();
10931
10931
  init_pane();
10932
- var version$1 = "0.1.0-alpha.122";
10932
+ var version$1 = "0.1.0-alpha.123";
10933
10933
  //#endregion
10934
10934
  //#region src/cli/upgrade.ts
10935
10935
  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, ranChild, runUpgrade, statusOf$1, sayFound, sayDone, attempted, REFRESH_MS, refreshSkills, updatedIn, sayRefreshed, upgradeReport;
@@ -15200,7 +15200,9 @@ var init_marks = __esmMin((() => {
15200
15200
  reviewed: "✓",
15201
15201
  folder: "",
15202
15202
  folderOpen: "",
15203
- file: ""
15203
+ file: "",
15204
+ space: "·",
15205
+ tab: "→"
15204
15206
  };
15205
15207
  sets = {
15206
15208
  ring,
@@ -15213,7 +15215,9 @@ var init_marks = __esmMin((() => {
15213
15215
  reviewed: "✓",
15214
15216
  folder: "",
15215
15217
  folderOpen: "",
15216
- file: ""
15218
+ file: "",
15219
+ space: "·",
15220
+ tab: "→"
15217
15221
  },
15218
15222
  quote: {
15219
15223
  comment: "❞",
@@ -15224,7 +15228,9 @@ var init_marks = __esmMin((() => {
15224
15228
  reviewed: "✓",
15225
15229
  folder: "",
15226
15230
  folderOpen: "",
15227
- file: ""
15231
+ file: "",
15232
+ space: "·",
15233
+ tab: "→"
15228
15234
  },
15229
15235
  diamond: {
15230
15236
  comment: "◆",
@@ -15235,7 +15241,9 @@ var init_marks = __esmMin((() => {
15235
15241
  reviewed: "✓",
15236
15242
  folder: "",
15237
15243
  folderOpen: "",
15238
- file: ""
15244
+ file: "",
15245
+ space: "·",
15246
+ tab: "→"
15239
15247
  },
15240
15248
  dot: {
15241
15249
  comment: "●",
@@ -15246,7 +15254,9 @@ var init_marks = __esmMin((() => {
15246
15254
  reviewed: "✓",
15247
15255
  folder: "",
15248
15256
  folderOpen: "",
15249
- file: ""
15257
+ file: "",
15258
+ space: "·",
15259
+ tab: "→"
15250
15260
  },
15251
15261
  plain: {
15252
15262
  ...ring,
@@ -15344,7 +15354,7 @@ var init_theme = __esmMin((() => {
15344
15354
  }));
15345
15355
  //#endregion
15346
15356
  //#region src/tui/diffview.ts
15347
- var WASH, NOTE_MIN, ANSWER_MARK, REPLY_MARK, OVERSCAN, SIGN_WIDTH, SCROLL_ROWS, PAN_COLUMNS, WAYS, notchesIn, takenOver, wheelTo, SIGNS, numberFor, DiffView, startsOf, bareOf, noteKey, keyOf, groupOf, isChrome, alike, heldAt, sameLine, NO_SPANS, lineStarts, overLine, shifted, acrossLines, spansByLine, textAt, noteSpans, NOTE_PAINT, wrap, headOf, spokenLines, answerLines, noteLines, noteRows, proseRows, freshLines, proseAt, notesAt, codeRow, rowsFor, layout, lineNumbers, BARE_SIGN, signFor, lineSigns, sideLineOf;
15357
+ var WASH, NOTE_MIN, ANSWER_MARK, REPLY_MARK, OVERSCAN, SIGN_WIDTH, SCROLL_ROWS, PAN_COLUMNS, WAYS, notchesIn, takenOver, wheelTo, SIGNS, numberFor, DiffView, startsOf, bareOf, noteKey, keyOf, groupOf, isChrome, alike, heldAt, sameLine, NO_SPANS, lineStarts, overLine, shifted, acrossLines, spansByLine, textAt, noteSpans, NOTE_PAINT, wrap, headOf, spokenLines, answerLines, noteLines, noteRows, proseRows, freshLines, proseAt, notesAt, TRAILING, shownText, codeRow, rowsFor, layout, lineNumbers, BARE_SIGN, signFor, lineSigns, sideLineOf;
15348
15358
  var init_diffview = __esmMin((() => {
15349
15359
  init_dist();
15350
15360
  init_patch();
@@ -15948,8 +15958,16 @@ var init_diffview = __esmMin((() => {
15948
15958
  return fresh !== void 0 ? wanted : wanted.filter(() => !plan.fresh.has(line));
15949
15959
  };
15950
15960
  notesAt = (plan, row) => plan.notes.filter((note) => sideLineOf(row, note.side) === note.line).flatMap((note, at) => noteRows(note, row.index, plan.room, at + 1));
15961
+ TRAILING = /[ \t]+$/;
15962
+ shownText = (row) => {
15963
+ if (row.kind === "context") return row.text;
15964
+ const tail = TRAILING.exec(row.text);
15965
+ if (tail === null) return row.text;
15966
+ const marked = tail[0].replaceAll(" ", marks().tab).replaceAll(" ", marks().space);
15967
+ return `${row.text.slice(0, tail.index)}${marked}`;
15968
+ };
15951
15969
  codeRow = (plan, row) => ({
15952
- text: row.text,
15970
+ text: shownText(row),
15953
15971
  row: row.index,
15954
15972
  stop: 0,
15955
15973
  comment: false,
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.122",
26
+ "version": "0.1.0-alpha.123",
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": {