@eliya-oss/agent-diff 0.1.0-alpha.78 → 0.1.0-alpha.79

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.79
4
+
5
+ ### Patch Changes
6
+
7
+ - Opening a review on a branch named on the command line, or coming back to one you left, lands on a row you can comment on rather than on the row standing for hidden lines.
8
+
3
9
  ## 0.1.0-alpha.78
4
10
 
5
11
  ### Patch Changes
package/dist/main.js CHANGED
@@ -9663,7 +9663,7 @@ var init_pane = __esmMin((() => {
9663
9663
  init_commands();
9664
9664
  init_init();
9665
9665
  init_pane();
9666
- var version$1 = "0.1.0-alpha.78";
9666
+ var version$1 = "0.1.0-alpha.79";
9667
9667
  //#endregion
9668
9668
  //#region src/cli/upgrade.ts
9669
9669
  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;
@@ -12657,7 +12657,7 @@ var init_match = __esmMin((() => {
12657
12657
  }));
12658
12658
  //#endregion
12659
12659
  //#region src/tui/reduce.ts
12660
- var clamp, lastRow, rowsIn, withCursorVisible, moveCursor, stepStop, scrolled, draggedTo, pickedIn, atRow, noneLeft, layerHunk, nextFileWithComments, atComment, nothingOpen, layerComment, PAN_STEP, panned, moveLayer, inRail, railScrolled, movePanel, layerDown, PANES, panesShown, focusStepped, togglePanel, packedAway, zoom, toggleRail, foldDirectory, foldLayer, foldThread, fold, moveBranch, landingOn, revealing, moveFile, selectHunk, swapEnds, atBranch, grownBy, startSelection, openCompose, goBack, walkMatches, openPalette, openKeys, movePalette, paletteMatches, keyMatches, offered, paletteChoice, transitions, reduce, atFile, withContext, withFull, revealsAfter, gapOpened, panBy, withSent, withArrived, withColumns, withLayers, withPulls, withSilentForge, withBranches, withSource, withVouched, restoredTo, openedAt, withPatches, TAB_WIDTH, SPACE_CODE, ERASED_FROM, ERASED_TO, readable, legible, withDraft, paletteMoved, paletteClosed, withWaiting, withMatches, withNoticeHere, withNotice;
12660
+ var clamp, lastRow, rowsIn, withCursorVisible, moveCursor, stepStop, scrolled, draggedTo, pickedIn, atRow, noneLeft, layerHunk, nextFileWithComments, atComment, nothingOpen, layerComment, PAN_STEP, panned, moveLayer, inRail, railScrolled, movePanel, layerDown, PANES, panesShown, focusStepped, togglePanel, packedAway, zoom, toggleRail, foldDirectory, foldLayer, foldThread, fold, moveBranch, landingOn, revealing, moveFile, selectHunk, swapEnds, atBranch, grownBy, startSelection, openCompose, goBack, walkMatches, openPalette, openKeys, movePalette, paletteMatches, keyMatches, offered, paletteChoice, transitions, reduce, resumedAt, atFile, withContext, withFull, revealsAfter, gapOpened, panBy, withSent, withArrived, withColumns, withLayers, withPulls, withSilentForge, withBranches, withSource, withVouched, restoredTo, openedAt, withPatches, TAB_WIDTH, SPACE_CODE, ERASED_FROM, ERASED_TO, readable, legible, withDraft, paletteMoved, paletteClosed, withWaiting, withMatches, withNoticeHere, withNotice;
12661
12661
  var init_reduce = __esmMin((() => {
12662
12662
  init_dist();
12663
12663
  init_patch();
@@ -13147,6 +13147,22 @@ var init_reduce = __esmMin((() => {
13147
13147
  quit: (state) => state
13148
13148
  };
13149
13149
  reduce = (state, action) => transitions[action](state);
13150
+ resumedAt = (state, patchIndex, cursor, top) => {
13151
+ const held = {
13152
+ ...state,
13153
+ patchIndex
13154
+ };
13155
+ const rows = shownOf(held);
13156
+ const hidden = rows === void 0 ? /* @__PURE__ */ new Set() : gapRowSet(rows);
13157
+ const row = state.patches[patchIndex]?.rows[cursor];
13158
+ const workable = row !== void 0 && carriesLine(row) && !hidden.has(cursor);
13159
+ return {
13160
+ ...state,
13161
+ patchIndex,
13162
+ top,
13163
+ cursor: workable ? cursor : landingOn(state, patchIndex)
13164
+ };
13165
+ };
13150
13166
  atFile = (state, patchIndex) => ({
13151
13167
  ...state,
13152
13168
  closed: revealing(state, patchIndex),
@@ -15762,12 +15778,7 @@ var init_app = __esmMin((() => {
15762
15778
  });
15763
15779
  yield* this.openBranch();
15764
15780
  const patchIndex = Math.min(session.patchIndex, Math.max(0, this.state.patches.length - 1));
15765
- this.commit({
15766
- ...this.state,
15767
- patchIndex,
15768
- cursor: session.cursor,
15769
- top: session.top
15770
- });
15781
+ this.commit(resumedAt(this.state, patchIndex, session.cursor, session.top));
15771
15782
  yield* this.loadSource();
15772
15783
  });
15773
15784
  }
@@ -15808,6 +15819,9 @@ var init_app = __esmMin((() => {
15808
15819
  lastFailure() {
15809
15820
  return this.failure;
15810
15821
  }
15822
+ shown() {
15823
+ return this.state;
15824
+ }
15811
15825
  pinged() {
15812
15826
  const done = makeUnsafe$4();
15813
15827
  offerUnsafe(this.intents, Intent.Ping({ done }));
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.78",
26
+ "version": "0.1.0-alpha.79",
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": {