@eliya-oss/agent-diff 0.1.0-alpha.63 → 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,11 @@
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
+
3
9
  ## 0.1.0-alpha.63
4
10
 
5
11
  ### 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.63";
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
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.63",
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": {