@eliya-oss/agent-diff 0.1.0-alpha.101 → 0.1.0-alpha.102

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.102
4
+
5
+ ### Patch Changes
6
+
7
+ - `?` opens the key sheet again, along with every other binding that is a shifted character: `{`, `}`, `<`, `>`, `+` and `_`.
8
+
3
9
  ## 0.1.0-alpha.101
4
10
 
5
11
  ### Patch Changes
package/dist/main.js CHANGED
@@ -9926,7 +9926,7 @@ var init_pane = __esmMin((() => {
9926
9926
  init_commands();
9927
9927
  init_init();
9928
9928
  init_pane();
9929
- var version$1 = "0.1.0-alpha.101";
9929
+ var version$1 = "0.1.0-alpha.102";
9930
9930
  //#endregion
9931
9931
  //#region src/cli/upgrade.ts
9932
9932
  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;
@@ -16057,7 +16057,7 @@ var init_upgrade = __esmMin((() => {
16057
16057
  return due ? `adiff ${latest} is out · adiff upgrade` : "";
16058
16058
  }).pipe(withSpan("Tui.upgradeHint"));
16059
16059
  upgradeHint = worded.pipe(orElseSucceed(() => ""));
16060
- })), LEAVING_SAID, NOTICE_MS, 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, restsWhereItLanded, lonelyGaps, chosenIn, settingsHeld, firstBranches, missing, openingOn, launch, told, untilDestroyed, runOn, runTui;
16060
+ })), LEAVING_SAID, NOTICE_MS, KEY_HISTORY, DRAIN_PASSES, TRAIL_HISTORY, clockOf, momentOf, noticeOf, COPIERS, wayland, handOver, throughMultiplexer, copyToClipboard, lineUnder, asKey, openedPull, LISTENS, WRITES, OVER, overReview, writesInto, listens, LETTER, laidOut, ARROWS, SHIFTED, keyName, App, turnedOver, settledPath, restsWhereItLanded, lonelyGaps, chosenIn, settingsHeld, firstBranches, missing, openingOn, launch, told, untilDestroyed, runOn, runTui;
16061
16061
  var init_app = __esmMin((() => {
16062
16062
  init_dist();
16063
16063
  init_report();
@@ -16159,17 +16159,45 @@ var init_app = __esmMin((() => {
16159
16159
  overReview = (screen) => OVER.has(screen);
16160
16160
  writesInto = (screen) => WRITES.has(screen);
16161
16161
  listens = (screen) => LISTENS.has(screen);
16162
- laidOut = (key) => key.baseCode === void 0 || key.name.length !== 1 ? key.name : String.fromCodePoint(key.baseCode);
16162
+ LETTER = /^[a-z]$/i;
16163
+ laidOut = (key) => {
16164
+ if (key.baseCode === void 0 || key.name.length !== 1) return key.name;
16165
+ const laid = String.fromCodePoint(key.baseCode);
16166
+ return LETTER.test(laid) ? laid : key.name;
16167
+ };
16163
16168
  ARROWS = /* @__PURE__ */ new Set([
16164
16169
  "up",
16165
16170
  "down",
16166
16171
  "left",
16167
16172
  "right"
16168
16173
  ]);
16174
+ SHIFTED = {
16175
+ "1": "!",
16176
+ "2": "@",
16177
+ "3": "#",
16178
+ "4": "$",
16179
+ "5": "%",
16180
+ "6": "^",
16181
+ "7": "&",
16182
+ "8": "*",
16183
+ "9": "(",
16184
+ "0": ")",
16185
+ "-": "_",
16186
+ "=": "+",
16187
+ "[": "{",
16188
+ "]": "}",
16189
+ "\\": "|",
16190
+ ";": ":",
16191
+ "'": "\"",
16192
+ ",": "<",
16193
+ ".": ">",
16194
+ "/": "?",
16195
+ "`": "~"
16196
+ };
16169
16197
  keyName = (key) => {
16170
16198
  if (key.shift && (key.name === "tab" || ARROWS.has(key.name))) return `shift+${key.name}`;
16171
16199
  const named = laidOut(key);
16172
- const base = key.shift && named.length === 1 ? named.toUpperCase() : named;
16200
+ const base = key.shift && named.length === 1 ? SHIFTED[named] ?? named.toUpperCase() : named;
16173
16201
  return key.ctrl ? `ctrl+${base}` : base;
16174
16202
  };
16175
16203
  App = class {
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.101",
26
+ "version": "0.1.0-alpha.102",
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": {