@eliya-oss/agent-diff 0.1.0-alpha.182 → 0.1.0-alpha.183

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,17 @@
1
1
  # @eliya-oss/agent-diff
2
2
 
3
+ ## 0.1.0-alpha.183
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(compose box): caps lock types capital letters in a comment, a report and a search.
8
+
9
+ <details><summary>What was wrong</summary>
10
+
11
+ With caps lock on, every box that takes typing wrote lowercase letters, in terminals that speak the kitty keyboard protocol.
12
+
13
+ </details>
14
+
3
15
  ## 0.1.0-alpha.182
4
16
 
5
17
  ### Patch Changes
package/dist/main.js CHANGED
@@ -10042,7 +10042,7 @@ var init_config = __esmMin((() => {
10042
10042
  //#region package.json
10043
10043
  init_pane();
10044
10044
  init_config();
10045
- var version$1 = "0.1.0-alpha.182";
10045
+ var version$1 = "0.1.0-alpha.183";
10046
10046
  //#endregion
10047
10047
  //#region src/cli/error.ts
10048
10048
  var UnknownCommand, MissingOption, UnknownField, UnknownOption, BadOption, RegistryUnanswered;
@@ -16200,7 +16200,7 @@ var init_command = __esmMin((() => {
16200
16200
  }));
16201
16201
  //#endregion
16202
16202
  //#region src/tui/keys.ts
16203
- var LISTENS, WRITES, overReview, writesInto, listens, LETTER, ARROWS, SHIFTED, typed, keyName, keyNamed;
16203
+ var LISTENS, WRITES, overReview, writesInto, listens, LETTER, ARROWS, SHIFTED, typed, LOWER_CASE, capsLocked, keyName, keyNamed;
16204
16204
  var init_keys = __esmMin((() => {
16205
16205
  LISTENS = /* @__PURE__ */ new Set([
16206
16206
  "keys",
@@ -16248,6 +16248,11 @@ var init_keys = __esmMin((() => {
16248
16248
  const laid = String.fromCodePoint(key.baseCode);
16249
16249
  return LETTER.test(laid) ? laid : key.name;
16250
16250
  };
16251
+ LOWER_CASE = /^\p{Ll}$/u;
16252
+ capsLocked = (key) => {
16253
+ if (key.capsLock !== true || key.ctrl || key.meta || !LOWER_CASE.test(key.sequence)) return;
16254
+ key.sequence = key.sequence.toUpperCase();
16255
+ };
16251
16256
  keyName = (key) => {
16252
16257
  if (key.shift && (key.name === "tab" || ARROWS.has(key.name))) return `shift+${key.name}`;
16253
16258
  const named = typed(key);
@@ -24392,6 +24397,7 @@ var init_app = __esmMin((() => {
24392
24397
  return asVoid(run$1(handle)(quiet));
24393
24398
  }
24394
24399
  pressed(key) {
24400
+ capsLocked(key);
24395
24401
  if (this.renderer.hasSelection) this.renderer.clearSelection();
24396
24402
  offerUnsafe(this.intents, Intent.Key({ key }));
24397
24403
  }
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.182",
26
+ "version": "0.1.0-alpha.183",
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": {