@eliya-oss/agent-diff 0.1.0-alpha.85 → 0.1.0-alpha.86

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.86
4
+
5
+ ### Patch Changes
6
+
7
+ - Turning past the last file says "last file" instead of doing nothing, and the same at the first file going back.
8
+
3
9
  ## 0.1.0-alpha.85
4
10
 
5
11
  ### Patch 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.85";
9807
+ var version$1 = "0.1.0-alpha.86";
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;
@@ -13144,15 +13144,20 @@ var init_reduce = __esmMin((() => {
13144
13144
  }, patchIndex);
13145
13145
  return state.closed.filter((path) => !wanted.includes(path));
13146
13146
  };
13147
- moveFile = (state, delta) => ({
13148
- ...state,
13149
- closed: revealing(state, layerFile(state, delta)),
13150
- patchIndex: layerFile(state, delta),
13151
- top: 0,
13152
- cursor: landingOn(state, layerFile(state, delta)),
13153
- anchorRow: 0,
13154
- selecting: false
13155
- });
13147
+ moveFile = (state, delta) => {
13148
+ const next = layerFile(state, delta);
13149
+ if (next === state.patchIndex) return withNoticeHere(state, delta > 0 ? "last file" : "first file");
13150
+ return {
13151
+ ...state,
13152
+ notice: "",
13153
+ closed: revealing(state, next),
13154
+ patchIndex: next,
13155
+ top: 0,
13156
+ cursor: landingOn(state, next),
13157
+ anchorRow: 0,
13158
+ selecting: false
13159
+ };
13160
+ };
13156
13161
  selectHunk = (state) => {
13157
13162
  const found = changeAround(state);
13158
13163
  if (found === void 0) return withNotice(state, "no change under the cursor");
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.85",
26
+ "version": "0.1.0-alpha.86",
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": {