@eliya-oss/agent-diff 0.1.0-alpha.137 → 0.1.0-alpha.138

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,27 @@
1
1
  # @eliya-oss/agent-diff
2
2
 
3
+ ## 0.1.0-alpha.138
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(review panel): the cursor keeps its place when you settle a thread, so the next one comes to it.
8
+
9
+ <details><summary>What was wrong</summary>
10
+
11
+ Settling followed the thread into the Settled section at the bottom of the panel, so closing a
12
+ column of threads meant walking back up to the top after every one.
13
+
14
+ </details>
15
+
16
+ fix(keys): tab moves to the next pane on the screen instead of bringing the file list back.
17
+
18
+ <details><summary>What was wrong</summary>
19
+
20
+ Hiding the file list with `t` and then pressing tab reopened it, so there was no way to move
21
+ between the diff and the review panel with the room the file list had been taking.
22
+
23
+ </details>
24
+
3
25
  ## 0.1.0-alpha.137
4
26
 
5
27
  ### Patch Changes
package/dist/main.js CHANGED
@@ -11098,7 +11098,7 @@ var init_pane = __esmMin((() => {
11098
11098
  init_drafts();
11099
11099
  init_init();
11100
11100
  init_pane();
11101
- var version$1 = "0.1.0-alpha.137";
11101
+ var version$1 = "0.1.0-alpha.138";
11102
11102
  //#endregion
11103
11103
  //#region src/cli/upgrade.ts
11104
11104
  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;
@@ -14701,7 +14701,7 @@ var init_match = __esmMin((() => {
14701
14701
  }));
14702
14702
  //#endregion
14703
14703
  //#region src/tui/reduce.ts
14704
- var clamp, lastRow, rowsIn, withCursorVisible, moveCursor, stepStop, scrolled, restingOn, draggedTo, pickedIn, atRow, noneLeft, layerHunk, nextFileWithComments, atComment, nothingOpen, layerComment, PAN_STEP, panned, moveLayer, inRail, railScrolled, movePanel, layerDown, stepsToEnd, toTop, farOff, byHalf, boundedStep, PANEL_FAR, PANES, panesShown, focusStepped, togglePanel, toggleNav, packedAway, zoom, toggleRail, foldDirectory, foldLayer, foldThread, fold, moveBranch, landingOn, revealing, atTheEnd, moveFile, selectHunk, swapEnds, atBranch, grownBy, startSelection, draftMark, openCompose, outOfDiff, goBack, walkMatches, openPalette, openKeys, movePalette, paletteMatches, keyMatches, offered, paletteChoice, transitions, reduce, resumedAt, atFile, withContext, withFull, allRevealed, revealsAfter, gapShown, gapOpened, panBy, withSent, withArrived, withColumns, laidOver, onLayerHolding, withLayers, withPulls, withSilentForge, withBranches, withSource, withVouched, restoredTo, openedAt, withPatches, TAB_WIDTH, SPACE_CODE, ERASED_FROM, ERASED_TO, readable, legible, withDraft, paletteMoved, paletteClosed, withWaiting, withFinder, withMatches, withNoticeHere, withNotice;
14704
+ var clamp, lastRow, rowsIn, withCursorVisible, moveCursor, stepStop, scrolled, restingOn, draggedTo, pickedIn, atRow, noneLeft, layerHunk, nextFileWithComments, atComment, nothingOpen, layerComment, PAN_STEP, panned, moveLayer, inRail, railScrolled, movePanel, layerDown, stepsToEnd, toTop, farOff, byHalf, boundedStep, PANEL_FAR, PANES, paneShown, panesShown, focusStepped, togglePanel, toggleNav, packedAway, zoom, toggleRail, foldDirectory, foldLayer, foldThread, fold, moveBranch, landingOn, revealing, atTheEnd, moveFile, selectHunk, swapEnds, atBranch, grownBy, startSelection, draftMark, openCompose, outOfDiff, goBack, walkMatches, openPalette, openKeys, movePalette, paletteMatches, keyMatches, offered, paletteChoice, transitions, reduce, resumedAt, atFile, withContext, withFull, allRevealed, revealsAfter, gapShown, gapOpened, panBy, withSent, withArrived, withColumns, laidOver, onLayerHolding, withLayers, withPulls, withSilentForge, withBranches, withSource, withVouched, restoredTo, openedAt, withPatches, TAB_WIDTH, SPACE_CODE, ERASED_FROM, ERASED_TO, readable, legible, withDraft, paletteMoved, paletteClosed, withWaiting, withFinder, withMatches, withNoticeHere, withNotice;
14705
14705
  var init_reduce = __esmMin((() => {
14706
14706
  init_dist();
14707
14707
  init_patch();
@@ -14915,7 +14915,12 @@ var init_reduce = __esmMin((() => {
14915
14915
  "diff",
14916
14916
  "review"
14917
14917
  ];
14918
- panesShown = (state) => PANES.filter((pane) => pane !== "review" || panelShown(state));
14918
+ paneShown = (state, pane) => {
14919
+ if (pane === "review") return panelShown(state);
14920
+ if (pane === "tree") return state.navOpen;
14921
+ return true;
14922
+ };
14923
+ panesShown = (state) => PANES.filter((pane) => paneShown(state, pane));
14919
14924
  focusStepped = (state, delta) => {
14920
14925
  const shown = panesShown(state);
14921
14926
  const at = shown.indexOf(state.focus);
@@ -15201,13 +15206,11 @@ var init_reduce = __esmMin((() => {
15201
15206
  "thread.reply": (state) => state,
15202
15207
  "focus.toggle": (state) => ({
15203
15208
  ...state,
15204
- focus: focusStepped(state, 1),
15205
- navOpen: true
15209
+ focus: focusStepped(state, 1)
15206
15210
  }),
15207
15211
  "focus.back": (state) => ({
15208
15212
  ...state,
15209
- focus: focusStepped(state, -1),
15210
- navOpen: true
15213
+ focus: focusStepped(state, -1)
15211
15214
  }),
15212
15215
  "panel.toggle": togglePanel,
15213
15216
  "nav.toggle": toggleNav,
@@ -19010,7 +19013,7 @@ var init_app = __esmMin((() => {
19010
19013
  ...this.state,
19011
19014
  opened: this.state.opened.filter((one) => one !== id)
19012
19015
  }, sent);
19013
- this.commit(withNotice(this.staying(held, id, was), "settled"));
19016
+ this.commit(withNotice(this.staying(held, was), "settled"));
19014
19017
  });
19015
19018
  }
19016
19019
  replyHere() {
@@ -19028,13 +19031,11 @@ var init_app = __esmMin((() => {
19028
19031
  });
19029
19032
  });
19030
19033
  }
19031
- staying(state, id, was) {
19032
- const entries = panelEntries(state);
19033
- const last = Math.max(0, entries.length - 1);
19034
- const at = entries.findIndex((entry) => entry.comment.id === id);
19034
+ staying(state, was) {
19035
+ const last = Math.max(0, panelEntries(state).length - 1);
19035
19036
  return {
19036
19037
  ...state,
19037
- panelIndex: Math.min(at === -1 ? was : at, last)
19038
+ panelIndex: Math.min(was, last)
19038
19039
  };
19039
19040
  }
19040
19041
  removeHere() {
@@ -19059,7 +19060,7 @@ var init_app = __esmMin((() => {
19059
19060
  opened: this.state.opened.filter((one) => one !== id)
19060
19061
  };
19061
19062
  const said = back ? "restored" : "removed, it is under Removed in the review";
19062
- this.commit(withNotice(this.staying(withSent(kept, sent), id, was), said));
19063
+ this.commit(withNotice(this.staying(withSent(kept, sent), was), said));
19063
19064
  });
19064
19065
  }
19065
19066
  fillBranches() {
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.137",
26
+ "version": "0.1.0-alpha.138",
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": {
@@ -55,6 +55,7 @@
55
55
  "serve": "node --experimental-ffi --disable-warning=ExperimentalWarning scripts/serve.ts",
56
56
  "play": "node --watch --watch-path=src --watch-path=scripts --experimental-ffi --disable-warning=ExperimentalWarning scripts/play.ts",
57
57
  "shot": "node --experimental-ffi --disable-warning=ExperimentalWarning scripts/shot.ts",
58
- "pr-summary": "node scripts/pr-summary.ts"
58
+ "pr-summary": "node scripts/pr-summary.ts",
59
+ "scenario": "node --experimental-ffi --disable-warning=ExperimentalWarning scripts/scenario.ts"
59
60
  }
60
61
  }