@eliya-oss/agent-diff 0.1.0-alpha.106 → 0.1.0-alpha.107
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 +6 -0
- package/dist/main.js +11 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.107
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- The key that swaps the rail says where it would take you — `s file tree` while you are reading layers, `s layers` while you are reading files — and it is offered from the diff as well as from the rail. A layer set that has gone stale says so in the header, so you can see it from the file tree and not only from the layers rail.
|
|
8
|
+
|
|
3
9
|
## 0.1.0-alpha.106
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/main.js
CHANGED
|
@@ -9927,7 +9927,7 @@ var init_pane = __esmMin((() => {
|
|
|
9927
9927
|
init_commands();
|
|
9928
9928
|
init_init();
|
|
9929
9929
|
init_pane();
|
|
9930
|
-
var version$1 = "0.1.0-alpha.
|
|
9930
|
+
var version$1 = "0.1.0-alpha.107";
|
|
9931
9931
|
//#endregion
|
|
9932
9932
|
//#region src/cli/upgrade.ts
|
|
9933
9933
|
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;
|
|
@@ -12468,7 +12468,7 @@ var init_watch = __esmMin((() => {
|
|
|
12468
12468
|
}));
|
|
12469
12469
|
//#endregion
|
|
12470
12470
|
//#region src/tui/command.ts
|
|
12471
|
-
var EVERY_PANE, command, commands, TEXT_SCREENS, PRINTABLE_KEY, takesText, commandsFor, listableFor, glossaryFor, actionFor, GLYPHS, displayKey, hintsFor;
|
|
12471
|
+
var EVERY_PANE, command, commands, TEXT_SCREENS, PRINTABLE_KEY, takesText, commandsFor, listableFor, glossaryFor, actionFor, GLYPHS, displayKey, hintOf, hintsFor;
|
|
12472
12472
|
var init_command = __esmMin((() => {
|
|
12473
12473
|
EVERY_PANE = [
|
|
12474
12474
|
"tree",
|
|
@@ -12881,7 +12881,7 @@ var init_command = __esmMin((() => {
|
|
|
12881
12881
|
}),
|
|
12882
12882
|
command({
|
|
12883
12883
|
action: "rail.toggle",
|
|
12884
|
-
panes: ["tree"],
|
|
12884
|
+
panes: ["tree", "diff"],
|
|
12885
12885
|
title: "Switch between layers and files",
|
|
12886
12886
|
category: "Files",
|
|
12887
12887
|
keys: ["s"],
|
|
@@ -13080,9 +13080,13 @@ var init_command = __esmMin((() => {
|
|
|
13080
13080
|
if (key.startsWith("ctrl+")) return `^${key.slice(5)}`;
|
|
13081
13081
|
return GLYPHS[key] ?? key;
|
|
13082
13082
|
};
|
|
13083
|
+
hintOf = (entry, offered) => {
|
|
13084
|
+
if (entry.action === "rail.toggle") return offered.onLayers ? "file tree" : "layers";
|
|
13085
|
+
return entry.counted ? `${entry.hint} ${offered.comments}` : entry.hint;
|
|
13086
|
+
};
|
|
13083
13087
|
hintsFor = (screen, offered) => commandsFor(screen).filter((entry) => entry.hint.length > 0).filter((entry) => !entry.whenComments || offered.comments > 0).filter((entry) => !entry.whenLayers || offered.layers > 0).filter((entry) => !entry.whenThread || offered.onThread).filter((entry) => !entry.whenSelecting || offered.selecting).filter((entry) => !entry.whenReviewed || offered.reviewed > 0).filter((entry) => !entry.whenPull || offered.pull).filter((entry) => entry.panes.includes(offered.pane)).toSorted((left, right) => left.rank - right.rank).map((entry) => ({
|
|
13084
13088
|
key: displayKey(entry.keys[0] ?? ""),
|
|
13085
|
-
hint: entry
|
|
13089
|
+
hint: hintOf(entry, offered),
|
|
13086
13090
|
press: entry.keys[0] ?? ""
|
|
13087
13091
|
}));
|
|
13088
13092
|
}));
|
|
@@ -15249,6 +15253,7 @@ var init_render = __esmMin((() => {
|
|
|
15249
15253
|
pullHere(state).length === 0 ? "" : `${pullHere(state)} pull request`,
|
|
15250
15254
|
state.vouched.length === 0 ? "" : reviewedCount(state),
|
|
15251
15255
|
contextLabel(state.context),
|
|
15256
|
+
state.layersStale ? "layers stale" : "",
|
|
15252
15257
|
hiddenLines(state) === 0 ? "" : `⋯ ${hiddenLines(state)} ${hiddenLines(state) === 1 ? "line" : "lines"} hidden`,
|
|
15253
15258
|
pan === 0 ? "" : `→ ${pan} columns`
|
|
15254
15259
|
];
|
|
@@ -15632,7 +15637,8 @@ var init_render = __esmMin((() => {
|
|
|
15632
15637
|
selecting: state.selecting,
|
|
15633
15638
|
reviewed: reviewedCountIn(state),
|
|
15634
15639
|
pull: pullHere(state).length > 0,
|
|
15635
|
-
pane: state.screen === "review" ? state.focus : "diff"
|
|
15640
|
+
pane: state.screen === "review" ? state.focus : "diff",
|
|
15641
|
+
onLayers: onLayers(state)
|
|
15636
15642
|
});
|
|
15637
15643
|
this.header.content = this.headerText(state);
|
|
15638
15644
|
this.footer.content = this.footerText(state);
|
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.107",
|
|
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": {
|