@eliya-oss/agent-diff 0.1.0-alpha.168 → 0.1.0-alpha.169

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.169
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(base): escape closes the base picker and leaves the base as it was.
8
+
9
+ <details><summary>What was wrong</summary>
10
+
11
+ The picker took escape and did nothing with it. The only ways out were choosing a ref, handing the
12
+ choice back to adiff, or quitting the terminal.
13
+
14
+ </details>
15
+
16
+ fix(editor): escape closes the list of editors and opens nothing.
17
+
18
+ <details><summary>What was wrong</summary>
19
+
20
+ Pressing the key with no editor found opened the list, and escape left it on screen. A reviewer who
21
+ did not mean to choose an editor had to pick one anyway.
22
+
23
+ </details>
24
+
3
25
  ## 0.1.0-alpha.168
4
26
 
5
27
  ### Patch Changes
package/dist/main.js CHANGED
@@ -11421,7 +11421,7 @@ var init_pane = __esmMin((() => {
11421
11421
  //#region package.json
11422
11422
  init_drafts();
11423
11423
  init_pane();
11424
- var version$1 = "0.1.0-alpha.168";
11424
+ var version$1 = "0.1.0-alpha.169";
11425
11425
  //#endregion
11426
11426
  //#region src/cli/upgrade.ts
11427
11427
  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$1, newer, tagIn, fetched, askLatest, here, findUpgrade, willUpgrade, ranChild, runUpgrade, statusOf$1, sayFound, sayDone, attempted, SAY_SKILL_TOO, upgradeReport;
@@ -15546,6 +15546,16 @@ var init_command = __esmMin((() => {
15546
15546
  screens: ["base", "editor"],
15547
15547
  listed: false
15548
15548
  }),
15549
+ command({
15550
+ action: "back",
15551
+ title: "Go back",
15552
+ category: "Branches",
15553
+ keys: ["escape"],
15554
+ screens: ["base", "editor"],
15555
+ hint: "back",
15556
+ listed: false,
15557
+ rank: 9
15558
+ }),
15549
15559
  command({
15550
15560
  action: "base.clear",
15551
15561
  title: "Hand the choice back to adiff",
@@ -16627,6 +16637,16 @@ var init_reduce = __esmMin((() => {
16627
16637
  ...state,
16628
16638
  screen: "review",
16629
16639
  replyTo: void 0
16640
+ }),
16641
+ base: (state) => ({
16642
+ ...state,
16643
+ screen: state.returnTo,
16644
+ query: ""
16645
+ }),
16646
+ editor: (state) => ({
16647
+ ...state,
16648
+ screen: state.returnTo,
16649
+ query: ""
16630
16650
  })
16631
16651
  };
16632
16652
  goBack = (state) => BACK_FROM[state.screen]?.(state) ?? outOfDiff(state);
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.168",
26
+ "version": "0.1.0-alpha.169",
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": {