@eliya-oss/agent-diff 0.1.0-alpha.95 → 0.1.0-alpha.96

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.96
4
+
5
+ ### Patch Changes
6
+
7
+ - Ctrl+C closes the box, key sheet, palette or search that is open over the review, and only leaves adiff when nothing is open over it.
8
+
3
9
  ## 0.1.0-alpha.95
4
10
 
5
11
  ### Minor Changes
package/dist/main.js CHANGED
@@ -9913,7 +9913,7 @@ var init_pane = __esmMin((() => {
9913
9913
  init_commands();
9914
9914
  init_init();
9915
9915
  init_pane();
9916
- var version$1 = "0.1.0-alpha.95";
9916
+ var version$1 = "0.1.0-alpha.96";
9917
9917
  //#endregion
9918
9918
  //#region src/cli/upgrade.ts
9919
9919
  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;
@@ -15997,7 +15997,7 @@ var init_upgrade = __esmMin((() => {
15997
15997
  return due ? `adiff ${latest} is out · adiff upgrade` : "";
15998
15998
  }).pipe(withSpan("Tui.upgradeHint"));
15999
15999
  upgradeHint = worded.pipe(orElseSucceed(() => ""));
16000
- })), KEY_HISTORY, DRAIN_PASSES, TRAIL_HISTORY, clockOf, momentOf, noticeOf, COPIERS, wayland, handOver, throughMultiplexer, copyToClipboard, lineUnder, asKey, openedPull, LISTENS, WRITES, writesInto, listens, laidOut, ARROWS, keyName, App, turnedOver, settledPath, chosenIn, settingsHeld, firstBranches, missing, openingOn, launch, told, untilDestroyed, runOn, runTui;
16000
+ })), KEY_HISTORY, DRAIN_PASSES, TRAIL_HISTORY, clockOf, momentOf, noticeOf, COPIERS, wayland, handOver, throughMultiplexer, copyToClipboard, lineUnder, asKey, openedPull, LISTENS, WRITES, OVER, overReview, writesInto, listens, laidOut, ARROWS, keyName, App, turnedOver, settledPath, chosenIn, settingsHeld, firstBranches, missing, openingOn, launch, told, untilDestroyed, runOn, runTui;
16001
16001
  var init_app = __esmMin((() => {
16002
16002
  init_dist();
16003
16003
  init_report();
@@ -16083,6 +16083,14 @@ var init_app = __esmMin((() => {
16083
16083
  };
16084
16084
  LISTENS = /* @__PURE__ */ new Set(["keys", "palette"]);
16085
16085
  WRITES = /* @__PURE__ */ new Set(["compose", "report"]);
16086
+ OVER = /* @__PURE__ */ new Set([
16087
+ "compose",
16088
+ "report",
16089
+ "keys",
16090
+ "palette",
16091
+ "search"
16092
+ ]);
16093
+ overReview = (screen) => OVER.has(screen);
16086
16094
  writesInto = (screen) => WRITES.has(screen);
16087
16095
  listens = (screen) => LISTENS.has(screen);
16088
16096
  laidOut = (key) => key.baseCode === void 0 || key.name.length !== 1 ? key.name : String.fromCodePoint(key.baseCode);
@@ -16479,6 +16487,10 @@ var init_app = __esmMin((() => {
16479
16487
  }
16480
16488
  onKey(key, forced) {
16481
16489
  return gen({ self: this }, function* () {
16490
+ if (forced === void 0 && keyName(key) === "ctrl+c") {
16491
+ yield* this.askedToLeave();
16492
+ return;
16493
+ }
16482
16494
  const action = forced ?? actionFor(this.state.screen, keyName(key), this.state.focus);
16483
16495
  this.grewWithShift = action === "select.grow" || action === "select.shrink";
16484
16496
  this.remember(action, key);
@@ -16891,6 +16903,12 @@ var init_app = __esmMin((() => {
16891
16903
  this.commit(withNotice(atFile(next, target), `marked ${patch.path}`));
16892
16904
  });
16893
16905
  }
16906
+ askedToLeave() {
16907
+ return sync(() => {
16908
+ if (overReview(this.state.screen)) this.commit(reduce(this.measured(), "back"));
16909
+ else this.renderer.destroy();
16910
+ });
16911
+ }
16894
16912
  worktreeFor(branch) {
16895
16913
  const reading = this.reading;
16896
16914
  return reading === void 0 || reading.worktree.branch !== branch ? void 0 : reading.worktree;
@@ -17162,7 +17180,7 @@ var init_app = __esmMin((() => {
17162
17180
  });
17163
17181
  runTui = fn("Tui.run")(function* (repo, sessionPath, branch) {
17164
17182
  const renderer = yield* promise(() => createCliRenderer({
17165
- exitOnCtrlC: true,
17183
+ exitOnCtrlC: false,
17166
17184
  useKittyKeyboard: {
17167
17185
  events: true,
17168
17186
  allKeysAsEscapes: true
@@ -17188,6 +17206,7 @@ var tui_exports = /* @__PURE__ */ __exportAll({
17188
17206
  launch: () => launch,
17189
17207
  listableFor: () => listableFor,
17190
17208
  noteKey: () => noteKey,
17209
+ overReview: () => overReview,
17191
17210
  palette: () => palette,
17192
17211
  runOn: () => runOn,
17193
17212
  runTui: () => runTui,
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.95",
26
+ "version": "0.1.0-alpha.96",
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": {