@eliya-oss/agent-diff 0.1.0-alpha.94 → 0.1.0-alpha.96

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/main.js +234 -39
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @eliya-oss/agent-diff
2
2
 
3
+ ## 0.1.0-alpha.96
4
+
5
+ ### Patch Changes
6
+
7
+ - Ctrl+C closes the box, key sheet, palette or search that is open over the review, and only leaves adiff when nothing is open over it.
8
+
9
+ ## 0.1.0-alpha.95
10
+
11
+ ### Minor Changes
12
+
13
+ - 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.
14
+
3
15
  ## 0.1.0-alpha.94
4
16
 
5
17
  ### 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$4 = __esmMin((() => {
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$4();
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$4();
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$4();
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$3 = __esmMin((() => {
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$3();
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$2 = __esmMin((() => {
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$2();
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
- saveWrap = fn("Cli.saveWrap")(function* (wrap) {
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
- saveSticky = fn("Cli.saveSticky")(function* (sticky) {
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.94";
9916
+ var version$1 = "0.1.0-alpha.96";
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, OVER, overReview, 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();
@@ -15934,6 +16083,14 @@ var init_app = __esmMin((() => {
15934
16083
  };
15935
16084
  LISTENS = /* @__PURE__ */ new Set(["keys", "palette"]);
15936
16085
  WRITES = /* @__PURE__ */ new Set(["compose", "report"]);
16086
+ OVER = /* @__PURE__ */ new Set([
16087
+ "compose",
16088
+ "report",
16089
+ "keys",
16090
+ "palette",
16091
+ "search"
16092
+ ]);
16093
+ overReview = (screen) => OVER.has(screen);
15937
16094
  writesInto = (screen) => WRITES.has(screen);
15938
16095
  listens = (screen) => LISTENS.has(screen);
15939
16096
  laidOut = (key) => key.baseCode === void 0 || key.name.length !== 1 ? key.name : String.fromCodePoint(key.baseCode);
@@ -15963,8 +16120,7 @@ var init_app = __esmMin((() => {
15963
16120
  roomed = 0;
15964
16121
  sessionPath;
15965
16122
  remembered = "";
15966
- wrapKept = false;
15967
- stickyKept = true;
16123
+ chosen = {};
15968
16124
  grewWithShift = false;
15969
16125
  keys = [];
15970
16126
  trail = [];
@@ -15979,8 +16135,10 @@ var init_app = __esmMin((() => {
15979
16135
  this.repo = options.repo;
15980
16136
  this.noticeMs = options.noticeMs ?? 2200;
15981
16137
  this.sessionPath = options.sessionPath;
15982
- this.wrapKept = options.wrap === true;
15983
- this.stickyKept = options.sticky !== false;
16138
+ Object.assign(this.chosen, chosenIn({
16139
+ ...initialState([]),
16140
+ ...options.chosen
16141
+ }));
15984
16142
  this.held = options.state;
15985
16143
  this.display = options.display;
15986
16144
  this.painting = options.painting;
@@ -16081,15 +16239,12 @@ var init_app = __esmMin((() => {
16081
16239
  yield* this.loadSource();
16082
16240
  });
16083
16241
  }
16084
- rememberWrap(next) {
16085
- if (next.wrap === this.wrapKept) return;
16086
- this.wrapKept = next.wrap;
16087
- this.dispatchTask(asVoid(saveWrap(next.wrap)));
16088
- }
16089
- rememberSticky(next) {
16090
- if (next.sticky === this.stickyKept) return;
16091
- this.stickyKept = next.sticky;
16092
- this.dispatchTask(asVoid(saveSticky(next.sticky)));
16242
+ rememberChosen(next) {
16243
+ for (const [name, value] of Object.entries(chosenIn(next))) {
16244
+ if (this.chosen[name] === value) continue;
16245
+ this.chosen[name] = value;
16246
+ this.dispatchTask(savePreference(name, value).pipe(asVoid, orElseSucceed(() => void 0)));
16247
+ }
16093
16248
  }
16094
16249
  rememberPlace(next) {
16095
16250
  if (this.sessionPath === void 0 || next.screen !== "review") return;
@@ -16229,8 +16384,7 @@ var init_app = __esmMin((() => {
16229
16384
  const appeared = next.notice.length > 0 && next.notice !== this.state.notice;
16230
16385
  if (appeared) this.recordNotice(next.notice);
16231
16386
  this.rememberPlace(next);
16232
- this.rememberWrap(next);
16233
- this.rememberSticky(next);
16387
+ this.rememberChosen(next);
16234
16388
  this.write(next);
16235
16389
  if (appeared) this.fade();
16236
16390
  }
@@ -16333,6 +16487,10 @@ var init_app = __esmMin((() => {
16333
16487
  }
16334
16488
  onKey(key, forced) {
16335
16489
  return gen({ self: this }, function* () {
16490
+ if (forced === void 0 && keyName(key) === "ctrl+c") {
16491
+ yield* this.askedToLeave();
16492
+ return;
16493
+ }
16336
16494
  const action = forced ?? actionFor(this.state.screen, keyName(key), this.state.focus);
16337
16495
  this.grewWithShift = action === "select.grow" || action === "select.shrink";
16338
16496
  this.remember(action, key);
@@ -16745,6 +16903,12 @@ var init_app = __esmMin((() => {
16745
16903
  this.commit(withNotice(atFile(next, target), `marked ${patch.path}`));
16746
16904
  });
16747
16905
  }
16906
+ askedToLeave() {
16907
+ return sync(() => {
16908
+ if (overReview(this.state.screen)) this.commit(reduce(this.measured(), "back"));
16909
+ else this.renderer.destroy();
16910
+ });
16911
+ }
16748
16912
  worktreeFor(branch) {
16749
16913
  const reading = this.reading;
16750
16914
  return reading === void 0 || reading.worktree.branch !== branch ? void 0 : reading.worktree;
@@ -16930,11 +17094,27 @@ var init_app = __esmMin((() => {
16930
17094
  anchorRow: state.cursor
16931
17095
  });
16932
17096
  settledPath = (path) => promise(() => realpath(path).catch(() => resolve(path)));
17097
+ chosenIn = (state) => ({
17098
+ wrap: state.wrap,
17099
+ sticky: state.sticky,
17100
+ panel: state.panelOpen,
17101
+ hideReviewed: state.hideReviewed,
17102
+ hideSettled: state.hideSettled,
17103
+ newestFirst: state.newestFirst,
17104
+ hold: state.hold
17105
+ });
16933
17106
  settingsHeld = gen(function* () {
16934
- const settings = yield* (yield* Store).settings;
17107
+ const store = yield* Store;
17108
+ const kept = heldValues(yield* store.settings);
16935
17109
  return {
16936
- wrap: settings.wrap === true,
16937
- sticky: settings.sticky !== false
17110
+ wrap: kept["wrap"] === true,
17111
+ sticky: kept["sticky"] === true,
17112
+ panelOpen: kept["panel"] === true,
17113
+ panelWas: kept["panel"] === true,
17114
+ hideReviewed: kept["hideReviewed"] === true,
17115
+ hideSettled: kept["hideSettled"] === true,
17116
+ newestFirst: kept["newestFirst"] === true,
17117
+ hold: kept["hold"] === true
16938
17118
  };
16939
17119
  });
16940
17120
  firstBranches = fn("Tui.firstBranches")(function* (repo, branch) {
@@ -16978,8 +17158,7 @@ var init_app = __esmMin((() => {
16978
17158
  sessionPath,
16979
17159
  resume: getOrUndefined$1(resume),
16980
17160
  opensOn: getOrUndefined$1(asOpened),
16981
- wrap: kept.wrap,
16982
- sticky: kept.sticky,
17161
+ chosen: kept,
16983
17162
  partial,
16984
17163
  intents
16985
17164
  });
@@ -17001,7 +17180,7 @@ var init_app = __esmMin((() => {
17001
17180
  });
17002
17181
  runTui = fn("Tui.run")(function* (repo, sessionPath, branch) {
17003
17182
  const renderer = yield* promise(() => createCliRenderer({
17004
- exitOnCtrlC: true,
17183
+ exitOnCtrlC: false,
17005
17184
  useKittyKeyboard: {
17006
17185
  events: true,
17007
17186
  allKeysAsEscapes: true
@@ -17027,6 +17206,7 @@ var tui_exports = /* @__PURE__ */ __exportAll({
17027
17206
  launch: () => launch,
17028
17207
  listableFor: () => listableFor,
17029
17208
  noteKey: () => noteKey,
17209
+ overReview: () => overReview,
17030
17210
  palette: () => palette,
17031
17211
  runOn: () => runOn,
17032
17212
  runTui: () => runTui,
@@ -17181,6 +17361,18 @@ const skillRefresh = fn("Main.skillRefresh")(function* (options) {
17181
17361
  const report = yield* refreshSkill([process.cwd(), homedir()]);
17182
17362
  yield* answer(options, { changes: report.changes });
17183
17363
  });
17364
+ const configList = fn("Main.configList")(function* (options) {
17365
+ yield* answer(options, { preferences: yield* readPreferences() });
17366
+ });
17367
+ const configGet = fn("Main.configGet")(function* (options) {
17368
+ const preference = yield* readPreference(yield* required(options, "name"));
17369
+ yield* answer(options, { preference });
17370
+ });
17371
+ const configSet = fn("Main.configSet")(function* (options) {
17372
+ const wanted = yield* required(options, "value");
17373
+ const preference = yield* savePreference(yield* required(options, "name"), wanted === "on");
17374
+ yield* answer(options, { preference });
17375
+ });
17184
17376
  const reviewPane = fn("Main.reviewPane")(function* (options) {
17185
17377
  const report = yield* openPane(yield* required(options, "repo"), options["branch"]);
17186
17378
  yield* answer(options, {
@@ -17211,6 +17403,9 @@ const routes = {
17211
17403
  "comment resolve": commentResolve,
17212
17404
  "comment remove": commentRemove,
17213
17405
  "comment restore": commentRestore,
17406
+ "config list": configList,
17407
+ "config get": configGet,
17408
+ "config set": configSet,
17214
17409
  "review pane": reviewPane,
17215
17410
  "review progress": reviewStatus,
17216
17411
  "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.94",
26
+ "version": "0.1.0-alpha.96",
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": {