@eliya-oss/agent-diff 0.1.0-alpha.82 → 0.1.0-alpha.83

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.83
4
+
5
+ ### Patch Changes
6
+
7
+ - A thread is redrawn when an answer or a reply lands in it, rather than staying as it was until the branch is read again. A thread the reviewer wrote back to now says it is with the agent instead of claiming it was answered.
8
+
3
9
  ## 0.1.0-alpha.82
4
10
 
5
11
  ### Minor Changes
package/dist/main.js CHANGED
@@ -9804,7 +9804,7 @@ var init_pane = __esmMin((() => {
9804
9804
  init_commands();
9805
9805
  init_init();
9806
9806
  init_pane();
9807
- var version$1 = "0.1.0-alpha.82";
9807
+ var version$1 = "0.1.0-alpha.83";
9808
9808
  //#endregion
9809
9809
  //#region src/cli/upgrade.ts
9810
9810
  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;
@@ -11584,7 +11584,7 @@ var init_tree = __esmMin((() => {
11584
11584
  return node.children.reduce((total, child) => total + filesUnder(tree, child), 0);
11585
11585
  };
11586
11586
  crowdedDirectories = (tree, limit) => tree.nodes.filter((node) => node.kind === "directory" && directFiles(tree, node.id) > limit).map((node) => node.path);
11587
- })), nothingReviewed, initialState, TREE_MAX, TREE_ROOMY, TREE_MIN, TREE_SHARE, DIFF_MIN, DIFF_ROOMY, bodyRoom, treeWidth, reviewWidth, panelFits, panelShown, onLayers, selectedLayer, proseFor, layerFiles, layerHolding, layerOpen, chunked, packed, shortened, wordWrapped, wrapped, NO_NOTE, noteRows$1, proseRow, proseRows$1, titleRows, clipEnd, FILE_LEAD, fileRows, layerRows, railWindow, selectedBranch, selectedPatch, pullHere, knownToHaveNoPull, kept, treeOf, reviewedCountIn, treeRows, crowdedOf, foldersOfFile, isReviewed, treeStart, treeWindow, commentsOn, hiddenLines, markedRows, carriesLine, selectedRows, snippetOf, selectedLineCount, lineOf, brokenAt, laidLine, laidDraft, caretRow, caretColumn, caretOn, COMPOSE_BOX, COMPOSE_MARGIN, COMPOSE_PAD, COMPOSE_LEAST, composeBox, composeRoom$1, composeTarget, replyTarget, pickedText, selectedLines, KEYWORDS, NAME, longestName$1, searchTerm, matchHere, selectionReadout, WHOLE_FILE, CONTEXT_STEPS, wholeFileOff, contextToggled, layerContext, newLineAt, sourceLineAt, rowAtSourceLine, rowShowing, lineOnSide, commentRowsIn, threadsAtRow, stopsAtRow, threadAtStop, threadAtRow, openCommentRows, filesWithComments, answerCount, answersIn, newerOf, sectionOf, sentEntry, panelEntries, panelIndexOf, panelEntry, threadChosen, spokenSince, hunkStarts, openingRow, changeAround, nextUnreviewed, reviewedCount, fileOrder, layerFile, selectionRange;
11587
+ })), nothingReviewed, initialState, TREE_MAX, TREE_ROOMY, TREE_MIN, TREE_SHARE, DIFF_MIN, DIFF_ROOMY, bodyRoom, treeWidth, reviewWidth, panelFits, panelShown, onLayers, selectedLayer, proseFor, layerFiles, layerHolding, layerOpen, chunked, packed, shortened, wordWrapped, wrapped, NO_NOTE, noteRows$1, proseRow, proseRows$1, titleRows, clipEnd, FILE_LEAD, fileRows, layerRows, railWindow, selectedBranch, selectedPatch, pullHere, knownToHaveNoPull, kept, treeOf, reviewedCountIn, treeRows, crowdedOf, foldersOfFile, isReviewed, treeStart, treeWindow, commentsOn, hiddenLines, markedRows, carriesLine, selectedRows, snippetOf, selectedLineCount, lineOf, brokenAt, laidLine, laidDraft, caretRow, caretColumn, caretOn, COMPOSE_BOX, COMPOSE_MARGIN, COMPOSE_PAD, COMPOSE_LEAST, composeBox, composeRoom$1, composeTarget, replyTarget, pickedText, selectedLines, KEYWORDS, NAME, longestName$1, searchTerm, matchHere, selectionReadout, WHOLE_FILE, CONTEXT_STEPS, wholeFileOff, contextToggled, layerContext, newLineAt, sourceLineAt, rowAtSourceLine, rowShowing, lineOnSide, commentRowsIn, threadsAtRow, stopsAtRow, threadAtStop, threadAtRow, openCommentRows, filesWithComments, answerCount, answersIn, newerOf, spokeLast, sectionOf, sentEntry, panelEntries, panelIndexOf, panelEntry, threadChosen, spokenSince, hunkStarts, openingRow, changeAround, nextUnreviewed, reviewedCount, fileOrder, layerFile, selectionRange;
11588
11588
  var init_model = __esmMin((() => {
11589
11589
  init_dist();
11590
11590
  init_patch();
@@ -12058,7 +12058,11 @@ var init_model = __esmMin((() => {
12058
12058
  if (later === void 0) return comment;
12059
12059
  return answersIn(later) > answersIn(comment) ? later : comment;
12060
12060
  };
12061
- sectionOf = (comment) => answersIn(comment) > 0 || comment.settled === true ? "answered" : "with";
12061
+ spokeLast = (comment) => comment.turns?.at(-1)?.voice;
12062
+ sectionOf = (comment) => {
12063
+ if (spokeLast(comment) === "reviewer" && comment.settled !== true) return "with";
12064
+ return answersIn(comment) > 0 || comment.settled === true ? "answered" : "with";
12065
+ };
12062
12066
  sentEntry = (state, comment) => {
12063
12067
  const newer = newerOf(state, comment);
12064
12068
  return {
@@ -13734,7 +13738,7 @@ var init_theme = __esmMin((() => {
13734
13738
  }));
13735
13739
  //#endregion
13736
13740
  //#region src/tui/diffview.ts
13737
- var WASH, NOTE_MIN, ANSWER_MARK, REPLY_MARK, OVERSCAN, SIGN_WIDTH, SCROLL_ROWS, PAN_COLUMNS, WAYS, notchesIn, takenOver, wheelTo, SIGNS, numberFor, DiffView, startsOf, bareOf, keyOf, groupOf, isChrome, alike, heldAt, sameLine, NO_SPANS, lineStarts, overLine, shifted, acrossLines, spansByLine, textAt, noteSpans, NOTE_PAINT, wrap, headOf, spokenLines, answerLines, noteLines, noteRows, proseRows, proseAt, notesAt, codeRow, rowsFor, layout, lineNumbers, BARE_SIGN, signFor, lineSigns, sideLineOf;
13741
+ 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, proseAt, notesAt, codeRow, rowsFor, layout, lineNumbers, BARE_SIGN, signFor, lineSigns, sideLineOf;
13738
13742
  var init_diffview = __esmMin((() => {
13739
13743
  init_dist();
13740
13744
  init_patch();
@@ -14175,9 +14179,14 @@ var init_diffview = __esmMin((() => {
14175
14179
  return starts;
14176
14180
  };
14177
14181
  bareOf = (display) => new Set(display.flatMap((entry, index) => entry.comment || entry.gap || entry.prose ? [index] : []));
14182
+ noteKey = (note) => [
14183
+ `${note.side}${note.line}:${note.folded ? "-" : "+"}${note.body}`,
14184
+ note.settled ? "settled" : note.asks ? "asked" : "open",
14185
+ ...note.turns.length > 0 ? note.turns.map((turn) => `${turn.voice[0] ?? ""}:${turn.body}`) : note.answers.map((body) => `a:${body}`)
14186
+ ].join("");
14178
14187
  keyOf = (room, notes, prose) => [
14179
14188
  room,
14180
- ...notes.map((note) => `${note.side}${note.line}:${note.folded ? "-" : "+"}${note.body}`),
14189
+ ...notes.map(noteKey),
14181
14190
  ...prose.map((entry) => `p${entry.line}${entry.after ? ">" : "<"}:${entry.markdown}`)
14182
14191
  ].join("\0");
14183
14192
  groupOf = (entry) => {
@@ -14284,6 +14293,7 @@ var init_diffview = __esmMin((() => {
14284
14293
  const moved = note.stale ? ", the branch moved on" : "";
14285
14294
  if (note.settled) return `${marks().sent} settled${moved}`;
14286
14295
  if (note.asks) return `${marks().comment} asked back${moved}`;
14296
+ if (note.turns.at(-1)?.voice === "reviewer") return `${marks().comment} replied${moved}`;
14287
14297
  if (note.answers.length > 0) return `${marks().sent} answered${moved}`;
14288
14298
  return `${marks().sent} sent${moved}`;
14289
14299
  };
@@ -16914,6 +16924,7 @@ var tui_exports = /* @__PURE__ */ __exportAll({
16914
16924
  laidDraft: () => laidDraft,
16915
16925
  launch: () => launch,
16916
16926
  listableFor: () => listableFor,
16927
+ noteKey: () => noteKey,
16917
16928
  palette: () => palette,
16918
16929
  runOn: () => runOn,
16919
16930
  runTui: () => runTui,
@@ -16925,6 +16936,7 @@ var init_tui = __esmMin((() => {
16925
16936
  init_command();
16926
16937
  init_match();
16927
16938
  init_model();
16939
+ init_diffview();
16928
16940
  init_render();
16929
16941
  init_theme();
16930
16942
  }));
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.82",
26
+ "version": "0.1.0-alpha.83",
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": {