@eliya-oss/agent-diff 0.1.0-alpha.69 → 0.1.0-alpha.70
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 +8 -0
- package/dist/main.js +18 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.70
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- The published binary is attached to the release compressed as well as raw, and Homebrew and `adiff upgrade` both take the compressed one. An install downloads about 25MB rather than 73MB, and unpacks to the same binary.
|
|
8
|
+
|
|
9
|
+
- Dragging over the code itself copies it, not only over the line numbers. Turning to another file starts at the top of it rather than keeping where the last one was scrolled to. A bug report names the adiff version it came from.
|
|
10
|
+
|
|
3
11
|
## 0.1.0-alpha.69
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -9650,7 +9650,7 @@ var init_pane = __esmMin((() => {
|
|
|
9650
9650
|
init_commands();
|
|
9651
9651
|
init_init();
|
|
9652
9652
|
init_pane();
|
|
9653
|
-
var version$1 = "0.1.0-alpha.
|
|
9653
|
+
var version$1 = "0.1.0-alpha.70";
|
|
9654
9654
|
//#endregion
|
|
9655
9655
|
//#region src/cli/upgrade.ts
|
|
9656
9656
|
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;
|
|
@@ -9687,7 +9687,7 @@ var init_upgrade$1 = __esmMin((() => {
|
|
|
9687
9687
|
if (route === "npm") return `npm i -g ${PACKAGE}@${TAG}`;
|
|
9688
9688
|
if (route === "bun") return `bun add -g ${PACKAGE}@${TAG}`;
|
|
9689
9689
|
if (route === "source") return `git -C ${checkoutOf(module)} pull && pnpm install && pnpm build`;
|
|
9690
|
-
return `curl -fsSL ${RELEASES}/download/${assetOf()} -
|
|
9690
|
+
return `curl -fsSL ${RELEASES}/download/${assetOf()}.tar.gz | tar -xzO ${assetOf()} > ${executable} && chmod +x ${executable}`;
|
|
9691
9691
|
};
|
|
9692
9692
|
NOTES = {
|
|
9693
9693
|
brew: "Homebrew installed it, so Homebrew replaces it.",
|
|
@@ -11898,7 +11898,7 @@ var init_report = __esmMin((() => {
|
|
|
11898
11898
|
return `${row.fileIndex === state.patchIndex ? ">" : " "} ${" ".repeat(row.depth)}${row.name}${row.kind === "directory" ? "/" : ""}`;
|
|
11899
11899
|
});
|
|
11900
11900
|
facts = (state, around) => [
|
|
11901
|
-
`- adiff on Node ${process.version}, ${platform()}, ${hostname()}`,
|
|
11901
|
+
`- adiff ${version$1} on Node ${process.version}, ${platform()}, ${hostname()}`,
|
|
11902
11902
|
`- terminal ${around.width}x${around.height}`,
|
|
11903
11903
|
`- repo \`${around.repo}\``,
|
|
11904
11904
|
`- branch \`${selectedBranch(state)?.branch ?? "none"}\``,
|
|
@@ -13582,10 +13582,12 @@ var init_diffview = __esmMin((() => {
|
|
|
13582
13582
|
}
|
|
13583
13583
|
listenTo(handlers) {
|
|
13584
13584
|
this.numbers.onMouseScroll = (event) => wheelTo(event, handlers);
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
|
|
13585
|
+
for (const target of [this.numbers, this.code]) {
|
|
13586
|
+
target.onMouseDown = (event) => handlers.down(event.y);
|
|
13587
|
+
target.onMouseDrag = (event) => handlers.drag(event.y);
|
|
13588
|
+
target.onMouseDragEnd = (event) => handlers.dragEnd(event.y);
|
|
13589
|
+
target.onMouseUp = (event) => handlers.dragEnd(event.y);
|
|
13590
|
+
}
|
|
13589
13591
|
}
|
|
13590
13592
|
refresh() {
|
|
13591
13593
|
this.shown = void 0;
|
|
@@ -15291,7 +15293,7 @@ var init_upgrade = __esmMin((() => {
|
|
|
15291
15293
|
return due ? `adiff ${latest} is out · adiff upgrade` : "";
|
|
15292
15294
|
}).pipe(withSpan("Tui.upgradeHint"));
|
|
15293
15295
|
upgradeHint = worded.pipe(orElseSucceed(() => ""));
|
|
15294
|
-
})), PRINTABLE, KEY_HISTORY, TRAIL_HISTORY, clockOf, momentOf, noticeOf, handOver, copyToClipboard, lineUnder, asKey, openedPull, byWord, WORD_STEP, caretSideways, caretFor, erasedBy, LISTENS, listens, laidOut, keyName, App, settledPath, openingOn, launch, told, untilDestroyed, runOn, runTui;
|
|
15296
|
+
})), PRINTABLE, KEY_HISTORY, TRAIL_HISTORY, clockOf, momentOf, noticeOf, handOver, copyToClipboard, lineUnder, asKey, openedPull, byWord, WORD_STEP, caretSideways, caretFor, erasedBy, LISTENS, listens, laidOut, keyName, App, turnedOver, settledPath, openingOn, launch, told, untilDestroyed, runOn, runTui;
|
|
15295
15297
|
var init_app = __esmMin((() => {
|
|
15296
15298
|
init_dist();
|
|
15297
15299
|
init_report();
|
|
@@ -15625,10 +15627,7 @@ var init_app = __esmMin((() => {
|
|
|
15625
15627
|
return Date.now() - this.began;
|
|
15626
15628
|
}
|
|
15627
15629
|
commit(given) {
|
|
15628
|
-
const next = given.patchIndex === this.state.patchIndex ? given :
|
|
15629
|
-
...given,
|
|
15630
|
-
railScroll: -1
|
|
15631
|
-
};
|
|
15630
|
+
const next = given.patchIndex === this.state.patchIndex ? given : turnedOver(given);
|
|
15632
15631
|
const appeared = next.notice.length > 0 && next.notice !== this.state.notice;
|
|
15633
15632
|
if (appeared) this.recordNotice(next.notice);
|
|
15634
15633
|
this.rememberPlace(next);
|
|
@@ -16208,6 +16207,13 @@ var init_app = __esmMin((() => {
|
|
|
16208
16207
|
});
|
|
16209
16208
|
}
|
|
16210
16209
|
};
|
|
16210
|
+
turnedOver = (state) => ({
|
|
16211
|
+
...state,
|
|
16212
|
+
railScroll: -1,
|
|
16213
|
+
scroll: -1,
|
|
16214
|
+
selecting: false,
|
|
16215
|
+
anchorRow: state.cursor
|
|
16216
|
+
});
|
|
16211
16217
|
settledPath = (path) => promise(() => realpath(path).catch(() => resolve(path)));
|
|
16212
16218
|
openingOn = (branches, branch) => {
|
|
16213
16219
|
if (branch === void 0) return none();
|
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.70",
|
|
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": {
|