@eliya-oss/agent-diff 0.1.0-alpha.94 → 0.1.0-alpha.95
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 +214 -38
- 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.95
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- adiff keeps preferences between sessions: wrapping, the sticky heading, the review panel, hiding files already reviewed, hiding settled threads, and the order the review reads in. `adiff config list`, `config get` and `config set` read and write them, and the review remembers a toggle made with a key.
|
|
8
|
+
|
|
3
9
|
## 0.1.0-alpha.94
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -8215,7 +8215,7 @@ var init_dist = __esmMin((() => {
|
|
|
8215
8215
|
init_SubscriptionRef();
|
|
8216
8216
|
init_Utils();
|
|
8217
8217
|
})), lineOn;
|
|
8218
|
-
var init_model$
|
|
8218
|
+
var init_model$5 = __esmMin((() => {
|
|
8219
8219
|
init_dist();
|
|
8220
8220
|
String$1.pipe(brand("@adiff/Blob"));
|
|
8221
8221
|
String$1.pipe(brand("@adiff/FilePath"));
|
|
@@ -8226,7 +8226,7 @@ var init_model$4 = __esmMin((() => {
|
|
|
8226
8226
|
var sideOf, linesOn, anchorFor;
|
|
8227
8227
|
var init_anchor = __esmMin((() => {
|
|
8228
8228
|
init_dist();
|
|
8229
|
-
init_model$
|
|
8229
|
+
init_model$5();
|
|
8230
8230
|
sideOf = (rows) => rows.some((row) => isSome(row.newLine)) ? "new" : "old";
|
|
8231
8231
|
linesOn = (rows, side) => rows.flatMap((row) => match$3(lineOn(row, side), {
|
|
8232
8232
|
onNone: () => [],
|
|
@@ -8345,7 +8345,7 @@ var init_parse$1 = __esmMin((() => {
|
|
|
8345
8345
|
//#endregion
|
|
8346
8346
|
//#region src/domain/patch/render.ts
|
|
8347
8347
|
var init_render$1 = __esmMin((() => {
|
|
8348
|
-
init_model$
|
|
8348
|
+
init_model$5();
|
|
8349
8349
|
}));
|
|
8350
8350
|
//#endregion
|
|
8351
8351
|
//#region src/domain/patch/sticky.ts
|
|
@@ -8390,7 +8390,7 @@ var init_patch = __esmMin((() => {
|
|
|
8390
8390
|
init_parse$1();
|
|
8391
8391
|
init_render$1();
|
|
8392
8392
|
init_sticky();
|
|
8393
|
-
init_model$
|
|
8393
|
+
init_model$5();
|
|
8394
8394
|
})), GitCommandFailed, FileUnreadable;
|
|
8395
8395
|
var init_error$3 = __esmMin((() => {
|
|
8396
8396
|
init_dist();
|
|
@@ -8663,7 +8663,7 @@ var init_vouch = __esmMin((() => {
|
|
|
8663
8663
|
};
|
|
8664
8664
|
};
|
|
8665
8665
|
}));
|
|
8666
|
-
var init_model$
|
|
8666
|
+
var init_model$4 = __esmMin((() => {
|
|
8667
8667
|
init_dist();
|
|
8668
8668
|
String$1.pipe(brand("@adiff/CommentId"));
|
|
8669
8669
|
}));
|
|
@@ -8672,7 +8672,7 @@ var init_model$3 = __esmMin((() => {
|
|
|
8672
8672
|
var init_review = __esmMin((() => {
|
|
8673
8673
|
init_dist();
|
|
8674
8674
|
init_vouch();
|
|
8675
|
-
init_model$
|
|
8675
|
+
init_model$4();
|
|
8676
8676
|
}));
|
|
8677
8677
|
//#endregion
|
|
8678
8678
|
//#region src/service/store/error.ts
|
|
@@ -8685,7 +8685,7 @@ var init_error$2 = __esmMin((() => {
|
|
|
8685
8685
|
//#endregion
|
|
8686
8686
|
//#region src/service/store/model.ts
|
|
8687
8687
|
var emptyBranchState;
|
|
8688
|
-
var init_model$
|
|
8688
|
+
var init_model$3 = __esmMin((() => {
|
|
8689
8689
|
emptyBranchState = {
|
|
8690
8690
|
vouches: {},
|
|
8691
8691
|
consumed: 0,
|
|
@@ -8738,7 +8738,12 @@ var init_schema = __esmMin((() => {
|
|
|
8738
8738
|
});
|
|
8739
8739
|
Settings = Struct({
|
|
8740
8740
|
wrap: optionalKey(Boolean),
|
|
8741
|
-
sticky: optionalKey(Boolean)
|
|
8741
|
+
sticky: optionalKey(Boolean),
|
|
8742
|
+
panel: optionalKey(Boolean),
|
|
8743
|
+
hideReviewed: optionalKey(Boolean),
|
|
8744
|
+
hideSettled: optionalKey(Boolean),
|
|
8745
|
+
newestFirst: optionalKey(Boolean),
|
|
8746
|
+
hold: optionalKey(Boolean)
|
|
8742
8747
|
});
|
|
8743
8748
|
UpgradeCheck = Struct({
|
|
8744
8749
|
note: optionalKey(String$1),
|
|
@@ -8790,7 +8795,7 @@ var init_paths = __esmMin((() => {
|
|
|
8790
8795
|
var init_service$1 = __esmMin((() => {
|
|
8791
8796
|
init_dist();
|
|
8792
8797
|
init_error$2();
|
|
8793
|
-
init_model$
|
|
8798
|
+
init_model$3();
|
|
8794
8799
|
init_schema();
|
|
8795
8800
|
init_paths();
|
|
8796
8801
|
Store = class extends Service()("adiff/Store") {};
|
|
@@ -9090,17 +9095,69 @@ var init_store = __esmMin((() => {
|
|
|
9090
9095
|
init_service$1();
|
|
9091
9096
|
init_error$2();
|
|
9092
9097
|
init_paths();
|
|
9098
|
+
init_model$3();
|
|
9099
|
+
}));
|
|
9100
|
+
//#endregion
|
|
9101
|
+
//#region src/domain/preferences/model.ts
|
|
9102
|
+
var preferences, preferenceNames, preferenceNamed, heldValue, heldValues;
|
|
9103
|
+
var init_model$2 = __esmMin((() => {
|
|
9104
|
+
preferences = [
|
|
9105
|
+
{
|
|
9106
|
+
name: "wrap",
|
|
9107
|
+
about: "Wrap long lines instead of cutting them at the edge",
|
|
9108
|
+
byDefault: false
|
|
9109
|
+
},
|
|
9110
|
+
{
|
|
9111
|
+
name: "sticky",
|
|
9112
|
+
about: "Keep the heading of what you are reading in view while you scroll",
|
|
9113
|
+
byDefault: true
|
|
9114
|
+
},
|
|
9115
|
+
{
|
|
9116
|
+
name: "panel",
|
|
9117
|
+
about: "Show the review panel beside the diff",
|
|
9118
|
+
byDefault: true
|
|
9119
|
+
},
|
|
9120
|
+
{
|
|
9121
|
+
name: "hideReviewed",
|
|
9122
|
+
about: "Leave files you have marked reviewed out of the file list",
|
|
9123
|
+
byDefault: false
|
|
9124
|
+
},
|
|
9125
|
+
{
|
|
9126
|
+
name: "hideSettled",
|
|
9127
|
+
about: "Leave threads you have settled out of the review panel",
|
|
9128
|
+
byDefault: false
|
|
9129
|
+
},
|
|
9130
|
+
{
|
|
9131
|
+
name: "newestFirst",
|
|
9132
|
+
about: "Read the review newest first, rather than oldest first",
|
|
9133
|
+
byDefault: true
|
|
9134
|
+
},
|
|
9135
|
+
{
|
|
9136
|
+
name: "hold",
|
|
9137
|
+
about: "Hold comments until you send them together, rather than sending each as it is written",
|
|
9138
|
+
byDefault: false
|
|
9139
|
+
}
|
|
9140
|
+
];
|
|
9141
|
+
preferenceNames = preferences.map((one) => one.name);
|
|
9142
|
+
preferenceNamed = (name) => preferences.find((one) => one.name === name);
|
|
9143
|
+
heldValue = (kept, name) => kept[name] ?? preferenceNamed(name)?.byDefault ?? false;
|
|
9144
|
+
heldValues = (kept) => Object.fromEntries(preferences.map((one) => [one.name, heldValue(kept, one.name)]));
|
|
9145
|
+
}));
|
|
9146
|
+
//#endregion
|
|
9147
|
+
//#region src/domain/preferences/index.ts
|
|
9148
|
+
var init_preferences = __esmMin((() => {
|
|
9093
9149
|
init_model$2();
|
|
9094
9150
|
}));
|
|
9095
9151
|
//#endregion
|
|
9096
9152
|
//#region src/cli/error.ts
|
|
9097
|
-
var UnknownBranch, UnknownBase, UnknownFile, UnknownComment, UnselectableRange, UnknownCommand, MissingOption, UnknownWorktree, MalformedLayers, NoLayers, InitUnwritable;
|
|
9153
|
+
var UnknownBranch, UnknownBase, UnknownFile, UnknownComment, UnknownPreference, UnselectableRange, UnknownCommand, MissingOption, UnknownWorktree, MalformedLayers, NoLayers, InitUnwritable;
|
|
9098
9154
|
var init_error$1 = __esmMin((() => {
|
|
9099
9155
|
init_dist();
|
|
9100
9156
|
UnknownBranch = class extends TaggedError("UnknownBranch") {};
|
|
9101
9157
|
UnknownBase = class extends TaggedError("UnknownBase") {};
|
|
9102
9158
|
UnknownFile = class extends TaggedError("UnknownFile") {};
|
|
9103
9159
|
UnknownComment = class extends TaggedError("UnknownComment") {};
|
|
9160
|
+
UnknownPreference = class extends TaggedError("UnknownPreference") {};
|
|
9104
9161
|
UnselectableRange = class extends TaggedError("UnselectableRange") {};
|
|
9105
9162
|
UnknownCommand = class extends TaggedError("UnknownCommand") {};
|
|
9106
9163
|
MissingOption = class extends TaggedError("MissingOption") {};
|
|
@@ -9108,16 +9165,14 @@ var init_error$1 = __esmMin((() => {
|
|
|
9108
9165
|
MalformedLayers = class extends TaggedError("MalformedLayers") {};
|
|
9109
9166
|
NoLayers = class extends TaggedError("NoLayers") {};
|
|
9110
9167
|
InitUnwritable = class extends TaggedError("InitUnwritable") {};
|
|
9111
|
-
}));
|
|
9112
|
-
//#endregion
|
|
9113
|
-
//#region src/cli/commands.ts
|
|
9114
|
-
var CONTEXT, WHOLE_FILE$1, POLL, AUTO, askedFor, basedOn, worktreeNamed, findBranch, baseFor, patchesOf, findPatch, rowsCovering, waitingOn, AT_ONCE, summaryOf, summaryFor, listBranches, blobOf, vouchIn, toggleVouch, readingOf, progressIn, reviewProgress, bodyOf, saidTo, spunOf, sentOf, sentIn, listSent, commentIn, submitComment, without$1, submitReply, listPatches, patchIn, flatten, threadBefore, takeComments, repoOf$1, worktreeOf$1, branchAt, awaitComments, saveReport, fileSource, fileBefore, saveWrap, saveSticky, setBase, clearBase, markRead;
|
|
9168
|
+
})), CONTEXT, WHOLE_FILE$1, POLL, AUTO, askedFor, basedOn, worktreeNamed, findBranch, baseFor, patchesOf, findPatch, rowsCovering, waitingOn, AT_ONCE, summaryOf, summaryFor, listBranches, blobOf, vouchIn, toggleVouch, readingOf, progressIn, reviewProgress, bodyOf, saidTo, spunOf, sentOf, sentIn, listSent, commentIn, submitComment, without$1, submitReply, listPatches, patchIn, flatten, threadBefore, takeComments, repoOf$1, worktreeOf$1, branchAt, awaitComments, saveReport, fileSource, fileBefore, readPreferences, readPreference, savePreference, setBase, clearBase, markRead;
|
|
9115
9169
|
var init_commands = __esmMin((() => {
|
|
9116
9170
|
init_dist();
|
|
9117
9171
|
init_patch();
|
|
9118
9172
|
init_git();
|
|
9119
9173
|
init_review();
|
|
9120
9174
|
init_store();
|
|
9175
|
+
init_preferences();
|
|
9121
9176
|
init_error$1();
|
|
9122
9177
|
CONTEXT = 3;
|
|
9123
9178
|
WHOLE_FILE$1 = 1e5;
|
|
@@ -9491,7 +9546,49 @@ var init_commands = __esmMin((() => {
|
|
|
9491
9546
|
const found = yield* git.blob(worktree, file);
|
|
9492
9547
|
return getOrElse(found, () => []);
|
|
9493
9548
|
});
|
|
9494
|
-
|
|
9549
|
+
readPreferences = fn("Cli.readPreferences")(function* () {
|
|
9550
|
+
const kept = yield* (yield* Store).settings;
|
|
9551
|
+
return preferences.map((one) => ({
|
|
9552
|
+
name: one.name,
|
|
9553
|
+
about: one.about,
|
|
9554
|
+
value: heldValue(kept, one.name),
|
|
9555
|
+
byDefault: one.byDefault
|
|
9556
|
+
}));
|
|
9557
|
+
});
|
|
9558
|
+
readPreference = fn("Cli.readPreference")(function* (name) {
|
|
9559
|
+
const known = preferenceNamed(name);
|
|
9560
|
+
if (known === void 0) return yield* new UnknownPreference({
|
|
9561
|
+
name,
|
|
9562
|
+
known: preferenceNames
|
|
9563
|
+
});
|
|
9564
|
+
const kept = yield* (yield* Store).settings;
|
|
9565
|
+
return {
|
|
9566
|
+
name,
|
|
9567
|
+
about: known.about,
|
|
9568
|
+
value: heldValue(kept, name),
|
|
9569
|
+
byDefault: known.byDefault
|
|
9570
|
+
};
|
|
9571
|
+
});
|
|
9572
|
+
savePreference = fn("Cli.savePreference")(function* (name, value) {
|
|
9573
|
+
const known = preferenceNamed(name);
|
|
9574
|
+
if (known === void 0) return yield* new UnknownPreference({
|
|
9575
|
+
name,
|
|
9576
|
+
known: preferenceNames
|
|
9577
|
+
});
|
|
9578
|
+
const store = yield* Store;
|
|
9579
|
+
const current = yield* store.settings;
|
|
9580
|
+
yield* store.saveSettings({
|
|
9581
|
+
...current,
|
|
9582
|
+
[name]: value
|
|
9583
|
+
});
|
|
9584
|
+
return {
|
|
9585
|
+
name,
|
|
9586
|
+
about: known.about,
|
|
9587
|
+
value,
|
|
9588
|
+
byDefault: known.byDefault
|
|
9589
|
+
};
|
|
9590
|
+
});
|
|
9591
|
+
fn("Cli.saveWrap")(function* (wrap) {
|
|
9495
9592
|
const store = yield* Store;
|
|
9496
9593
|
const current = yield* store.settings;
|
|
9497
9594
|
yield* store.saveSettings({
|
|
@@ -9499,7 +9596,7 @@ var init_commands = __esmMin((() => {
|
|
|
9499
9596
|
wrap
|
|
9500
9597
|
});
|
|
9501
9598
|
});
|
|
9502
|
-
|
|
9599
|
+
fn("Cli.saveSticky")(function* (sticky) {
|
|
9503
9600
|
const store = yield* Store;
|
|
9504
9601
|
const current = yield* store.settings;
|
|
9505
9602
|
yield* store.saveSettings({
|
|
@@ -9816,7 +9913,7 @@ var init_pane = __esmMin((() => {
|
|
|
9816
9913
|
init_commands();
|
|
9817
9914
|
init_init();
|
|
9818
9915
|
init_pane();
|
|
9819
|
-
var version$1 = "0.1.0-alpha.
|
|
9916
|
+
var version$1 = "0.1.0-alpha.95";
|
|
9820
9917
|
//#endregion
|
|
9821
9918
|
//#region src/cli/upgrade.ts
|
|
9822
9919
|
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;
|
|
@@ -10908,6 +11005,51 @@ var init_catalog = __esmMin((() => {
|
|
|
10908
11005
|
dataKey: "restored",
|
|
10909
11006
|
example: "adiff comment restore --repo . --branch cdr-1 --id c1"
|
|
10910
11007
|
},
|
|
11008
|
+
{
|
|
11009
|
+
name: "config list",
|
|
11010
|
+
about: "Every preference adiff keeps, with its value and what it does",
|
|
11011
|
+
group: SET_UP,
|
|
11012
|
+
addresses: "none",
|
|
11013
|
+
safety: "read",
|
|
11014
|
+
options: [],
|
|
11015
|
+
dataKey: "preferences",
|
|
11016
|
+
example: "adiff config list"
|
|
11017
|
+
},
|
|
11018
|
+
{
|
|
11019
|
+
name: "config get",
|
|
11020
|
+
about: "What one preference is set to",
|
|
11021
|
+
group: SET_UP,
|
|
11022
|
+
addresses: "none",
|
|
11023
|
+
safety: "read",
|
|
11024
|
+
options: [{
|
|
11025
|
+
name: "name",
|
|
11026
|
+
required: true,
|
|
11027
|
+
value: "name",
|
|
11028
|
+
about: "The preference, as `config list` names it"
|
|
11029
|
+
}],
|
|
11030
|
+
dataKey: "preference",
|
|
11031
|
+
example: "adiff config get --name sticky"
|
|
11032
|
+
},
|
|
11033
|
+
{
|
|
11034
|
+
name: "config set",
|
|
11035
|
+
about: "Turn one preference on or off, for every repository on this machine",
|
|
11036
|
+
group: SET_UP,
|
|
11037
|
+
addresses: "none",
|
|
11038
|
+
safety: "write",
|
|
11039
|
+
options: [{
|
|
11040
|
+
name: "name",
|
|
11041
|
+
required: true,
|
|
11042
|
+
value: "name",
|
|
11043
|
+
about: "The preference, as `config list` names it"
|
|
11044
|
+
}, {
|
|
11045
|
+
name: "value",
|
|
11046
|
+
required: true,
|
|
11047
|
+
value: "on|off",
|
|
11048
|
+
about: "What to set it to"
|
|
11049
|
+
}],
|
|
11050
|
+
dataKey: "preference",
|
|
11051
|
+
example: "adiff config set --name hold --value on"
|
|
11052
|
+
},
|
|
10911
11053
|
{
|
|
10912
11054
|
name: "init",
|
|
10913
11055
|
about: "Write the review loop into this repository's agent instructions, so an agent finds it unprompted",
|
|
@@ -11042,6 +11184,11 @@ var init_report$1 = __esmMin((() => {
|
|
|
11042
11184
|
suggestion: "The error lists the files this branch changed. Use one of those paths.",
|
|
11043
11185
|
retriable: false
|
|
11044
11186
|
},
|
|
11187
|
+
UnknownPreference: {
|
|
11188
|
+
exit: 3,
|
|
11189
|
+
suggestion: "The error lists the preferences adiff knows. Run `adiff config list` to see them with their values.",
|
|
11190
|
+
retriable: false
|
|
11191
|
+
},
|
|
11045
11192
|
UnknownWorktree: {
|
|
11046
11193
|
exit: 3,
|
|
11047
11194
|
suggestion: "--worktree takes the path of a worktree of the repository under review. The error lists the ones that exist; pass one of those, or run the command from inside it with `--worktree .`.",
|
|
@@ -11619,6 +11766,7 @@ var init_model = __esmMin((() => {
|
|
|
11619
11766
|
hideSettled: false,
|
|
11620
11767
|
picked: void 0,
|
|
11621
11768
|
newestFirst: true,
|
|
11769
|
+
hold: false,
|
|
11622
11770
|
tallest: 0,
|
|
11623
11771
|
scroll: -1,
|
|
11624
11772
|
railRows: 12,
|
|
@@ -15849,12 +15997,13 @@ var init_upgrade = __esmMin((() => {
|
|
|
15849
15997
|
return due ? `adiff ${latest} is out · adiff upgrade` : "";
|
|
15850
15998
|
}).pipe(withSpan("Tui.upgradeHint"));
|
|
15851
15999
|
upgradeHint = worded.pipe(orElseSucceed(() => ""));
|
|
15852
|
-
})), KEY_HISTORY, DRAIN_PASSES, TRAIL_HISTORY, clockOf, momentOf, noticeOf, COPIERS, wayland, handOver, throughMultiplexer, copyToClipboard, lineUnder, asKey, openedPull, LISTENS, WRITES, writesInto, listens, laidOut, ARROWS, keyName, App, turnedOver, settledPath, settingsHeld, firstBranches, missing, openingOn, launch, told, untilDestroyed, runOn, runTui;
|
|
16000
|
+
})), KEY_HISTORY, DRAIN_PASSES, TRAIL_HISTORY, clockOf, momentOf, noticeOf, COPIERS, wayland, handOver, throughMultiplexer, copyToClipboard, lineUnder, asKey, openedPull, LISTENS, WRITES, writesInto, listens, laidOut, ARROWS, keyName, App, turnedOver, settledPath, chosenIn, settingsHeld, firstBranches, missing, openingOn, launch, told, untilDestroyed, runOn, runTui;
|
|
15853
16001
|
var init_app = __esmMin((() => {
|
|
15854
16002
|
init_dist();
|
|
15855
16003
|
init_report();
|
|
15856
16004
|
init_patch();
|
|
15857
16005
|
init_cli();
|
|
16006
|
+
init_preferences();
|
|
15858
16007
|
init_store();
|
|
15859
16008
|
init_watch();
|
|
15860
16009
|
init_forge();
|
|
@@ -15963,8 +16112,7 @@ var init_app = __esmMin((() => {
|
|
|
15963
16112
|
roomed = 0;
|
|
15964
16113
|
sessionPath;
|
|
15965
16114
|
remembered = "";
|
|
15966
|
-
|
|
15967
|
-
stickyKept = true;
|
|
16115
|
+
chosen = {};
|
|
15968
16116
|
grewWithShift = false;
|
|
15969
16117
|
keys = [];
|
|
15970
16118
|
trail = [];
|
|
@@ -15979,8 +16127,10 @@ var init_app = __esmMin((() => {
|
|
|
15979
16127
|
this.repo = options.repo;
|
|
15980
16128
|
this.noticeMs = options.noticeMs ?? 2200;
|
|
15981
16129
|
this.sessionPath = options.sessionPath;
|
|
15982
|
-
this.
|
|
15983
|
-
|
|
16130
|
+
Object.assign(this.chosen, chosenIn({
|
|
16131
|
+
...initialState([]),
|
|
16132
|
+
...options.chosen
|
|
16133
|
+
}));
|
|
15984
16134
|
this.held = options.state;
|
|
15985
16135
|
this.display = options.display;
|
|
15986
16136
|
this.painting = options.painting;
|
|
@@ -16081,15 +16231,12 @@ var init_app = __esmMin((() => {
|
|
|
16081
16231
|
yield* this.loadSource();
|
|
16082
16232
|
});
|
|
16083
16233
|
}
|
|
16084
|
-
|
|
16085
|
-
|
|
16086
|
-
|
|
16087
|
-
|
|
16088
|
-
|
|
16089
|
-
|
|
16090
|
-
if (next.sticky === this.stickyKept) return;
|
|
16091
|
-
this.stickyKept = next.sticky;
|
|
16092
|
-
this.dispatchTask(asVoid(saveSticky(next.sticky)));
|
|
16234
|
+
rememberChosen(next) {
|
|
16235
|
+
for (const [name, value] of Object.entries(chosenIn(next))) {
|
|
16236
|
+
if (this.chosen[name] === value) continue;
|
|
16237
|
+
this.chosen[name] = value;
|
|
16238
|
+
this.dispatchTask(savePreference(name, value).pipe(asVoid, orElseSucceed(() => void 0)));
|
|
16239
|
+
}
|
|
16093
16240
|
}
|
|
16094
16241
|
rememberPlace(next) {
|
|
16095
16242
|
if (this.sessionPath === void 0 || next.screen !== "review") return;
|
|
@@ -16229,8 +16376,7 @@ var init_app = __esmMin((() => {
|
|
|
16229
16376
|
const appeared = next.notice.length > 0 && next.notice !== this.state.notice;
|
|
16230
16377
|
if (appeared) this.recordNotice(next.notice);
|
|
16231
16378
|
this.rememberPlace(next);
|
|
16232
|
-
this.
|
|
16233
|
-
this.rememberSticky(next);
|
|
16379
|
+
this.rememberChosen(next);
|
|
16234
16380
|
this.write(next);
|
|
16235
16381
|
if (appeared) this.fade();
|
|
16236
16382
|
}
|
|
@@ -16930,11 +17076,27 @@ var init_app = __esmMin((() => {
|
|
|
16930
17076
|
anchorRow: state.cursor
|
|
16931
17077
|
});
|
|
16932
17078
|
settledPath = (path) => promise(() => realpath(path).catch(() => resolve(path)));
|
|
17079
|
+
chosenIn = (state) => ({
|
|
17080
|
+
wrap: state.wrap,
|
|
17081
|
+
sticky: state.sticky,
|
|
17082
|
+
panel: state.panelOpen,
|
|
17083
|
+
hideReviewed: state.hideReviewed,
|
|
17084
|
+
hideSettled: state.hideSettled,
|
|
17085
|
+
newestFirst: state.newestFirst,
|
|
17086
|
+
hold: state.hold
|
|
17087
|
+
});
|
|
16933
17088
|
settingsHeld = gen(function* () {
|
|
16934
|
-
const
|
|
17089
|
+
const store = yield* Store;
|
|
17090
|
+
const kept = heldValues(yield* store.settings);
|
|
16935
17091
|
return {
|
|
16936
|
-
wrap:
|
|
16937
|
-
sticky:
|
|
17092
|
+
wrap: kept["wrap"] === true,
|
|
17093
|
+
sticky: kept["sticky"] === true,
|
|
17094
|
+
panelOpen: kept["panel"] === true,
|
|
17095
|
+
panelWas: kept["panel"] === true,
|
|
17096
|
+
hideReviewed: kept["hideReviewed"] === true,
|
|
17097
|
+
hideSettled: kept["hideSettled"] === true,
|
|
17098
|
+
newestFirst: kept["newestFirst"] === true,
|
|
17099
|
+
hold: kept["hold"] === true
|
|
16938
17100
|
};
|
|
16939
17101
|
});
|
|
16940
17102
|
firstBranches = fn("Tui.firstBranches")(function* (repo, branch) {
|
|
@@ -16978,8 +17140,7 @@ var init_app = __esmMin((() => {
|
|
|
16978
17140
|
sessionPath,
|
|
16979
17141
|
resume: getOrUndefined$1(resume),
|
|
16980
17142
|
opensOn: getOrUndefined$1(asOpened),
|
|
16981
|
-
|
|
16982
|
-
sticky: kept.sticky,
|
|
17143
|
+
chosen: kept,
|
|
16983
17144
|
partial,
|
|
16984
17145
|
intents
|
|
16985
17146
|
});
|
|
@@ -17181,6 +17342,18 @@ const skillRefresh = fn("Main.skillRefresh")(function* (options) {
|
|
|
17181
17342
|
const report = yield* refreshSkill([process.cwd(), homedir()]);
|
|
17182
17343
|
yield* answer(options, { changes: report.changes });
|
|
17183
17344
|
});
|
|
17345
|
+
const configList = fn("Main.configList")(function* (options) {
|
|
17346
|
+
yield* answer(options, { preferences: yield* readPreferences() });
|
|
17347
|
+
});
|
|
17348
|
+
const configGet = fn("Main.configGet")(function* (options) {
|
|
17349
|
+
const preference = yield* readPreference(yield* required(options, "name"));
|
|
17350
|
+
yield* answer(options, { preference });
|
|
17351
|
+
});
|
|
17352
|
+
const configSet = fn("Main.configSet")(function* (options) {
|
|
17353
|
+
const wanted = yield* required(options, "value");
|
|
17354
|
+
const preference = yield* savePreference(yield* required(options, "name"), wanted === "on");
|
|
17355
|
+
yield* answer(options, { preference });
|
|
17356
|
+
});
|
|
17184
17357
|
const reviewPane = fn("Main.reviewPane")(function* (options) {
|
|
17185
17358
|
const report = yield* openPane(yield* required(options, "repo"), options["branch"]);
|
|
17186
17359
|
yield* answer(options, {
|
|
@@ -17211,6 +17384,9 @@ const routes = {
|
|
|
17211
17384
|
"comment resolve": commentResolve,
|
|
17212
17385
|
"comment remove": commentRemove,
|
|
17213
17386
|
"comment restore": commentRestore,
|
|
17387
|
+
"config list": configList,
|
|
17388
|
+
"config get": configGet,
|
|
17389
|
+
"config set": configSet,
|
|
17214
17390
|
"review pane": reviewPane,
|
|
17215
17391
|
"review progress": reviewStatus,
|
|
17216
17392
|
"layers set": layersSet,
|
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.95",
|
|
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": {
|