@eliya-oss/agent-diff 0.1.0-alpha.70 → 0.1.0-alpha.71

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eliya-oss/agent-diff
2
2
 
3
+ ## 0.1.0-alpha.71
4
+
5
+ ### Patch Changes
6
+
7
+ - `f` on the review panel hides the threads already settled, the way it hides files already read on the file list. The same key puts away what is done in whichever pane is in focus.
8
+
3
9
  ## 0.1.0-alpha.70
4
10
 
5
11
  ### 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.70";
9653
+ var version$1 = "0.1.0-alpha.71";
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;
@@ -11397,6 +11397,7 @@ var init_model = __esmMin((() => {
11397
11397
  columns: 0,
11398
11398
  reportFull: true,
11399
11399
  hideReviewed: false,
11400
+ hideSettled: false,
11400
11401
  newestFirst: true,
11401
11402
  tallest: 0,
11402
11403
  scroll: -1,
@@ -11826,7 +11827,7 @@ var init_model = __esmMin((() => {
11826
11827
  };
11827
11828
  };
11828
11829
  panelEntries = (state) => {
11829
- const delivered = state.sent.map((comment) => sentEntry(state, comment));
11830
+ const delivered = (state.hideSettled ? state.sent.filter((comment) => comment.settled !== true) : state.sent).map((comment) => sentEntry(state, comment));
11830
11831
  const ordered = (section) => {
11831
11832
  const found = delivered.filter((entry) => entry.section === section);
11832
11833
  return state.newestFirst ? found.toReversed() : found;
@@ -12318,9 +12319,19 @@ var init_command = __esmMin((() => {
12318
12319
  keys: ["O"],
12319
12320
  screens: ["review"]
12320
12321
  }),
12322
+ command({
12323
+ action: "panel.winnow",
12324
+ panes: ["review"],
12325
+ title: "Hide the threads already settled",
12326
+ category: "Comments",
12327
+ keys: ["f"],
12328
+ screens: ["review"],
12329
+ hint: "hide settled",
12330
+ rank: 3
12331
+ }),
12321
12332
  command({
12322
12333
  action: "tree.winnow",
12323
- panes: ["tree"],
12334
+ panes: ["tree", "diff"],
12324
12335
  title: "Hide the files already reviewed",
12325
12336
  category: "Files",
12326
12337
  keys: ["f"],
@@ -12518,9 +12529,10 @@ var init_command = __esmMin((() => {
12518
12529
  commandsFor = (screen) => commands.filter((entry) => entry.screens.includes(screen));
12519
12530
  listableFor = (screen) => commandsFor(screen).filter((entry) => entry.listed);
12520
12531
  glossaryFor = (screen) => commandsFor(screen).toSorted((left, right) => left.category.localeCompare(right.category) || left.title.localeCompare(right.title));
12521
- actionFor = (screen, key) => {
12532
+ actionFor = (screen, key, pane) => {
12522
12533
  if (takesText(screen) && PRINTABLE_KEY.test(key)) return void 0;
12523
- return commandsFor(screen).find((entry) => entry.keys.includes(key))?.action;
12534
+ const found = commandsFor(screen).filter((entry) => entry.keys.includes(key));
12535
+ return ((pane === void 0 ? void 0 : found.find((entry) => entry.panes.includes(pane))) ?? found[0])?.action;
12524
12536
  };
12525
12537
  GLYPHS = {
12526
12538
  up: "↑",
@@ -12976,6 +12988,11 @@ var init_reduce = __esmMin((() => {
12976
12988
  ...state,
12977
12989
  hideReviewed: !state.hideReviewed
12978
12990
  }),
12991
+ "panel.winnow": (state) => ({
12992
+ ...state,
12993
+ hideSettled: !state.hideSettled,
12994
+ panelIndex: 0
12995
+ }),
12979
12996
  "rail.toggle": toggleRail,
12980
12997
  "file.vouch": (state) => state,
12981
12998
  "file.vouch.next": (state) => state,
@@ -15730,7 +15747,7 @@ var init_app = __esmMin((() => {
15730
15747
  }
15731
15748
  onKey(key, forced) {
15732
15749
  return gen({ self: this }, function* () {
15733
- const action = forced ?? actionFor(this.state.screen, keyName(key));
15750
+ const action = forced ?? actionFor(this.state.screen, keyName(key), this.state.focus);
15734
15751
  this.remember(action, key);
15735
15752
  if (action === void 0) {
15736
15753
  this.onText(key);
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.70",
26
+ "version": "0.1.0-alpha.71",
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": {