@eliya-oss/agent-diff 0.1.0-alpha.62 → 0.1.0-alpha.64

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,17 @@
1
1
  # @eliya-oss/agent-diff
2
2
 
3
+ ## 0.1.0-alpha.64
4
+
5
+ ### Patch Changes
6
+
7
+ - Typing `adiff` works on a Node older than 26. The launcher moves to a newer Node when a terminal is about to be drawn, and did not know plain `adiff` now draws one. An unexpected failure also says what went wrong rather than nothing.
8
+
9
+ ## 0.1.0-alpha.63
10
+
11
+ ### Patch Changes
12
+
13
+ - Selecting lines now shows `y copy` in the footer. adiff holds the mouse while a review is open, so your usual copy shortcut has no terminal selection to act on, and the key that does work was named nowhere you would look.
14
+
3
15
  ## 0.1.0-alpha.62
4
16
 
5
17
  ### Patch Changes
package/bin/adiff.js CHANGED
@@ -27,8 +27,11 @@ const MESSAGE = [
27
27
  "Every other adiff command runs here. Install Node 26 to open the terminal.",
28
28
  ].join("\n")
29
29
 
30
+ const watched = () => process.stdout.isTTY && process.stdin.isTTY
31
+
30
32
  const drawsTerminal = (argv) => {
31
33
  const words = argv.filter((token) => !token.startsWith("--"))
34
+ if (argv.length === 0) return watched()
32
35
  return words[0] === "review" && words[1] === "open"
33
36
  }
34
37
 
package/dist/main.js CHANGED
@@ -9448,7 +9448,7 @@ var init_pane = __esmMin((() => {
9448
9448
  init_commands();
9449
9449
  init_init();
9450
9450
  init_pane();
9451
- var version$1 = "0.1.0-alpha.62";
9451
+ var version$1 = "0.1.0-alpha.64";
9452
9452
  //#endregion
9453
9453
  //#region src/cli/upgrade.ts
9454
9454
  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;
@@ -10725,14 +10725,15 @@ var init_report$1 = __esmMin((() => {
10725
10725
  const tag = tagOf(cause);
10726
10726
  const advice = ADVICE[tag] ?? FALLBACK;
10727
10727
  const { _tag: _ignored, ...detail } = typeof cause === "object" && cause !== null ? { ...cause } : { detail: String(cause) };
10728
+ const said = cause instanceof Error && Object.keys(detail).length === 0 ? { detail: cause.message } : detail;
10728
10729
  return {
10729
10730
  line: JSON.stringify({
10730
10731
  ok: false,
10731
10732
  error: {
10732
- ...detail,
10733
+ ...said,
10733
10734
  type: tag,
10734
10735
  retriable: advice.retriable,
10735
- suggestion: sharpen(tag, detail, advice.suggestion)
10736
+ suggestion: sharpen(tag, said, advice.suggestion)
10736
10737
  }
10737
10738
  }),
10738
10739
  exit: advice.exit
@@ -11820,6 +11821,7 @@ var init_command = __esmMin((() => {
11820
11821
  counted: false,
11821
11822
  whenLayers: false,
11822
11823
  whenThread: false,
11824
+ whenSelecting: false,
11823
11825
  whenPull: false,
11824
11826
  rank: 0,
11825
11827
  ...input
@@ -12019,7 +12021,10 @@ var init_command = __esmMin((() => {
12019
12021
  action: "selection.copy",
12020
12022
  title: "Copy the selection",
12021
12023
  keys: ["y"],
12022
- screens: ["review"]
12024
+ screens: ["review"],
12025
+ hint: "copy",
12026
+ whenSelecting: true,
12027
+ rank: 1
12023
12028
  }),
12024
12029
  command({
12025
12030
  action: "search.open",
@@ -12364,7 +12369,7 @@ var init_command = __esmMin((() => {
12364
12369
  if (key.startsWith("ctrl+")) return `^${key.slice(5)}`;
12365
12370
  return GLYPHS[key] ?? key;
12366
12371
  };
12367
- hintsFor = (screen, offered) => commandsFor(screen).filter((entry) => entry.hint.length > 0).filter((entry) => !entry.whenStaged || offered.staged > 0).filter((entry) => !entry.whenLayers || offered.layers > 0).filter((entry) => !entry.whenThread || offered.onThread).filter((entry) => !entry.whenPull || offered.pull).toSorted((left, right) => left.rank - right.rank).map((entry) => ({
12372
+ hintsFor = (screen, offered) => commandsFor(screen).filter((entry) => entry.hint.length > 0).filter((entry) => !entry.whenStaged || offered.staged > 0).filter((entry) => !entry.whenLayers || offered.layers > 0).filter((entry) => !entry.whenThread || offered.onThread).filter((entry) => !entry.whenSelecting || offered.selecting).filter((entry) => !entry.whenPull || offered.pull).toSorted((left, right) => left.rank - right.rank).map((entry) => ({
12368
12373
  key: displayKey(entry.keys[0] ?? ""),
12369
12374
  hint: entry.counted ? `${entry.hint} ${offered.staged}` : entry.hint,
12370
12375
  press: entry.keys[0] ?? ""
@@ -14576,6 +14581,7 @@ var init_render = __esmMin((() => {
14576
14581
  staged: state.staged,
14577
14582
  layers: state.layers.length,
14578
14583
  onThread: state.stop > 0 || threadChosen(state) !== void 0,
14584
+ selecting: state.selecting,
14579
14585
  pull: pullHere(state).length > 0
14580
14586
  });
14581
14587
  this.header.content = this.headerText(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.62",
26
+ "version": "0.1.0-alpha.64",
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": {