@eliya-oss/agent-diff 0.1.0-alpha.181 → 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 +24 -0
- package/dist/main.js +30 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
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
|
+
|
|
15
|
+
## 0.1.0-alpha.182
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- fix(diff): an arrow pressed after a short scroll that leaves the cursor on screen keeps the view where the scroll left it.
|
|
20
|
+
|
|
21
|
+
<details><summary>What was wrong</summary>
|
|
22
|
+
|
|
23
|
+
The arrow moved the cursor one line and jumped the view back to where it was before the scroll, so the reader lost their place.
|
|
24
|
+
|
|
25
|
+
</details>
|
|
26
|
+
|
|
3
27
|
## 0.1.0-alpha.181
|
|
4
28
|
|
|
5
29
|
### 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.
|
|
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);
|
|
@@ -23239,7 +23244,7 @@ var init_editor = __esmMin((() => {
|
|
|
23239
23244
|
}));
|
|
23240
23245
|
//#endregion
|
|
23241
23246
|
//#region src/tui/moving.ts
|
|
23242
|
-
var clicked, stepped, catchUp, paged, commitSynced, rolled, moveFile, walkComments;
|
|
23247
|
+
var clicked, stepped, stayPut, catchUp, paged, commitSynced, rolled, moveFile, walkComments;
|
|
23243
23248
|
var init_moving = __esmMin((() => {
|
|
23244
23249
|
init_dist();
|
|
23245
23250
|
init_reduce();
|
|
@@ -23277,7 +23282,20 @@ var init_moving = __esmMin((() => {
|
|
|
23277
23282
|
return gen(function* () {
|
|
23278
23283
|
if (paged(app, delta)) return;
|
|
23279
23284
|
catchUp(app);
|
|
23285
|
+
const held = app.state;
|
|
23280
23286
|
yield* commitSynced(app, delta > 0 ? "cursor.next" : "cursor.prev");
|
|
23287
|
+
stayPut(app, held);
|
|
23288
|
+
});
|
|
23289
|
+
};
|
|
23290
|
+
stayPut = (app, held) => {
|
|
23291
|
+
const state = app.state;
|
|
23292
|
+
if (held.scroll < 0 || state.screen !== "review" || state.patchIndex !== held.patchIndex) return;
|
|
23293
|
+
const span = app.screen.blockAt(state.cursor, state.stop);
|
|
23294
|
+
const end = held.scroll + Math.max(1, app.screen.viewportRows());
|
|
23295
|
+
if (span.rows === 0 || span.start < held.scroll || span.start + span.rows > end) return;
|
|
23296
|
+
app.commit({
|
|
23297
|
+
...state,
|
|
23298
|
+
scroll: held.scroll
|
|
23281
23299
|
});
|
|
23282
23300
|
};
|
|
23283
23301
|
catchUp = (app) => {
|
|
@@ -23285,9 +23303,15 @@ var init_moving = __esmMin((() => {
|
|
|
23285
23303
|
if (state.screen !== "review" || state.focus !== "diff" || state.scroll < 0) return;
|
|
23286
23304
|
const last = state.scroll + Math.max(1, app.screen.viewportRows()) - 1;
|
|
23287
23305
|
const at = app.screen.screenRowOf(state.cursor) ?? last;
|
|
23288
|
-
if (at >= state.scroll && at <= last) return;
|
|
23289
|
-
const wanted = at < state.scroll ? state.scroll : last;
|
|
23290
23306
|
const top = app.screen.rowAtScreen(state.scroll);
|
|
23307
|
+
if (at >= state.scroll && at <= last) {
|
|
23308
|
+
app.commit({
|
|
23309
|
+
...state,
|
|
23310
|
+
top
|
|
23311
|
+
});
|
|
23312
|
+
return;
|
|
23313
|
+
}
|
|
23314
|
+
const wanted = at < state.scroll ? state.scroll : last;
|
|
23291
23315
|
app.commit({
|
|
23292
23316
|
...state,
|
|
23293
23317
|
cursor: app.screen.rowAtScreen(wanted),
|
|
@@ -24373,6 +24397,7 @@ var init_app = __esmMin((() => {
|
|
|
24373
24397
|
return asVoid(run$1(handle)(quiet));
|
|
24374
24398
|
}
|
|
24375
24399
|
pressed(key) {
|
|
24400
|
+
capsLocked(key);
|
|
24376
24401
|
if (this.renderer.hasSelection) this.renderer.clearSelection();
|
|
24377
24402
|
offerUnsafe(this.intents, Intent.Key({ key }));
|
|
24378
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.
|
|
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": {
|