@eliya-oss/agent-diff 0.1.0-alpha.48 → 0.1.0-alpha.49

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.49
4
+
5
+ ### Patch Changes
6
+
7
+ - `z` gives the diff the whole window: it clears the review panel as well as the file list, and pressing it again brings back whatever was there before. The key that hides the panel on its own, `a`, is named in the footer instead of only in the sheet of keys.
8
+
3
9
  ## 0.1.0-alpha.48
4
10
 
5
11
  ### Patch Changes
package/dist/main.js CHANGED
@@ -9201,7 +9201,7 @@ var init_pane = __esmMin((() => {
9201
9201
  init_commands();
9202
9202
  init_init();
9203
9203
  init_pane();
9204
- var version$1 = "0.1.0-alpha.48";
9204
+ var version$1 = "0.1.0-alpha.49";
9205
9205
  //#endregion
9206
9206
  //#region src/cli/upgrade.ts
9207
9207
  var PACKAGE, TAG, RELEASES, REGISTRY, ASK_MS, RUN_MS, CELLAR, COMPILED, INSTALLED, BUN_GLOBAL, routeOf, ROUTES, asRoute, checkoutOf, assetOf, commandFor, NOTES, REFUSALS, RUNNABLE, NUMBERS, numbersIn, compare$1, partsOf, newer, tagIn, fetched, askLatest, here, findUpgrade, willUpgrade, runUpgrade, statusOf$1, refusalOf, OFFER, sayFound, sayDone, attempted, upgradeReport;
@@ -10903,6 +10903,7 @@ var init_model = __esmMin((() => {
10903
10903
  nothingReviewed = {
10904
10904
  arrived: [],
10905
10905
  panelOpen: true,
10906
+ panelWas: true,
10906
10907
  panelIndex: 0,
10907
10908
  columns: 0
10908
10909
  };
@@ -11629,11 +11630,12 @@ var init_command = __esmMin((() => {
11629
11630
  title: "Show or hide the review panel",
11630
11631
  category: "Review",
11631
11632
  keys: ["a"],
11632
- screens: ["review"]
11633
+ screens: ["review"],
11634
+ hint: "review"
11633
11635
  }),
11634
11636
  command({
11635
11637
  action: "nav.zoom",
11636
- title: "Hide the file list",
11638
+ title: "Hide the file list and the review panel",
11637
11639
  category: "General",
11638
11640
  keys: ["z", "\\"],
11639
11641
  screens: ["review"]
@@ -12032,7 +12034,7 @@ var init_match = __esmMin((() => {
12032
12034
  }));
12033
12035
  //#endregion
12034
12036
  //#region src/tui/reduce.ts
12035
- var clamp, lastRow, rowsIn, withCursorVisible, moveCursor, stepStop, scrolled, draggedTo, atRow, layerHunk, nextFileWithComments, atComment, nothingOpen, layerComment, PAN_STEP, panned, movePending, moveLayer, inRail, movePanel, layerDown, nextFocus, togglePanel, toggleRail, foldDirectory, foldLayer, foldThread, fold, moveBranch, moveFile, selectHunk, swapEnds, atBranch, startSelection, openCompose, goBack, walkMatches, openPalette, openKeys, movePalette, paletteMatches, offered, paletteChoice, transitions, reduce, atFile, withContext, withFull, revealsAfter, gapOpened, withPending, panBy, withSent, withArrived, withColumns, withLayers, withPulls, withSilentForge, withBranches, withSource, withVouched, restoredTo, withPatches, inserted, typed, backspaced, deleted, caretMoved, caretJumped, caretHomed, withDraft, paletteMoved, paletteClosed, withWaiting, withMatches, withNoticeHere, withNotice;
12037
+ var clamp, lastRow, rowsIn, withCursorVisible, moveCursor, stepStop, scrolled, draggedTo, atRow, layerHunk, nextFileWithComments, atComment, nothingOpen, layerComment, PAN_STEP, panned, movePending, moveLayer, inRail, movePanel, layerDown, nextFocus, togglePanel, packedAway, zoom, toggleRail, foldDirectory, foldLayer, foldThread, fold, moveBranch, moveFile, selectHunk, swapEnds, atBranch, startSelection, openCompose, goBack, walkMatches, openPalette, openKeys, movePalette, paletteMatches, offered, paletteChoice, transitions, reduce, atFile, withContext, withFull, revealsAfter, gapOpened, withPending, panBy, withSent, withArrived, withColumns, withLayers, withPulls, withSilentForge, withBranches, withSource, withVouched, restoredTo, withPatches, inserted, typed, backspaced, deleted, caretMoved, caretJumped, caretHomed, withDraft, paletteMoved, paletteClosed, withWaiting, withMatches, withNoticeHere, withNotice;
12036
12038
  var init_reduce = __esmMin((() => {
12037
12039
  init_dist();
12038
12040
  init_patch();
@@ -12181,10 +12183,23 @@ var init_reduce = __esmMin((() => {
12181
12183
  return {
12182
12184
  ...state,
12183
12185
  panelOpen,
12186
+ panelWas: panelOpen,
12184
12187
  focus: panelOpen ? state.focus : "diff",
12185
12188
  panelIndex: 0
12186
12189
  };
12187
12190
  };
12191
+ packedAway = (state) => !state.navOpen && !state.panelOpen;
12192
+ zoom = (state) => packedAway(state) ? {
12193
+ ...state,
12194
+ navOpen: true,
12195
+ panelOpen: state.panelWas,
12196
+ focus: "diff"
12197
+ } : {
12198
+ ...state,
12199
+ navOpen: false,
12200
+ panelOpen: false,
12201
+ focus: "diff"
12202
+ };
12188
12203
  toggleRail = (state) => {
12189
12204
  if (state.layers.length === 0) return withNotice(state, "no layers for this branch");
12190
12205
  if (state.rail === "layers") return {
@@ -12382,11 +12397,7 @@ var init_reduce = __esmMin((() => {
12382
12397
  navOpen: true
12383
12398
  }),
12384
12399
  "panel.toggle": togglePanel,
12385
- "nav.zoom": (state) => ({
12386
- ...state,
12387
- navOpen: !state.navOpen,
12388
- focus: "diff"
12389
- }),
12400
+ "nav.zoom": zoom,
12390
12401
  "wrap.toggle": (state) => ({
12391
12402
  ...state,
12392
12403
  wrap: !state.wrap,
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.48",
26
+ "version": "0.1.0-alpha.49",
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": {