@eliya-oss/agent-diff 0.1.0-alpha.143 → 0.1.0-alpha.145

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.
@@ -74,6 +74,10 @@ does not either — and a film that shows the wrong screen is worse than no film
74
74
  believes it. `pnpm record` writes its trace to a temp directory and prints the path in its error
75
75
  output; to keep one, run the tests yourself with `ADIFF_TRACE=<path>` set.
76
76
 
77
+ A run appends to that file rather than replacing it, so running the same test into it twice leaves
78
+ two traces under one name. The capture takes the newest, so a re-run shows the re-run. A trace the
79
+ test marked unreplayable is refused, naming the route the test took, so nothing is uploaded from it.
80
+
77
81
  ## What gets recorded
78
82
 
79
83
  Every test the branch adds, one recording each, not a representative sample. Skip only when the
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @eliya-oss/agent-diff
2
2
 
3
+ ## 0.1.0-alpha.145
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(bug report): a minimal report carries nothing that names the machine, the repo, the branch or the file.
8
+
9
+ <details><summary>What was wrong</summary>
10
+
11
+ `ctrl+t` said the report left out file names, code and key history, and then printed the hostname,
12
+ the repo path, the branch and the current file anyway. A reviewer who was told the report was safe
13
+ to paste into a public issue published all four. A minimal report now carries only what a
14
+ maintainer needs and a reviewer can share: the adiff and Node versions, the platform, the terminal
15
+ size, the screen and focus, the count reviewed, and the kind of the last internal failure. The
16
+ failure's message is left out too, because an error message routinely carries an absolute path — an
17
+ `ENOENT` names the file it could not open. A full report is unchanged.
18
+
19
+ </details>
20
+
21
+ ## 0.1.0-alpha.144
22
+
23
+ ### Patch Changes
24
+
25
+ - fix(home screen): the branch list is headed `BRANCH` and counts `3 branches`, where it said worktree.
26
+
27
+ <details><summary>What was wrong</summary>
28
+
29
+ The list of work waiting was headed `WORKTREE`, and the line above it counted worktrees. adiff talks
30
+ about branches everywhere else, so the reviewer had two words for one thing on the first screen they
31
+ see.
32
+
33
+ </details>
34
+
35
+ fix(keys): the keys that reread the list and jump to its ends name branches, not worktrees.
36
+
3
37
  ## 0.1.0-alpha.143
4
38
 
5
39
  ### Patch Changes
package/README.md CHANGED
@@ -6,6 +6,10 @@ An agent finishes a piece of work and leaves you a diff. adiff puts the conversa
6
6
  you comment on the lines in a terminal, the agent that wrote them answers under your words, and a
7
7
  point stays open until you settle it.
8
8
 
9
+ <pre align="center">brew install Newbie012/tap/adiff</pre>
10
+
11
+ <p align="center"><a href="docs/install.md">Other ways to install</a></p>
12
+
9
13
  <img src="assets/terminal.webp" alt="The adiff worktree list, showing seven branches with their sizes, layers and review state" width="820">
10
14
 
11
15
  </div>
@@ -20,8 +24,8 @@ brew install Newbie012/tap/adiff
20
24
  npx skills add Newbie012/agent-diff --skill adiff
21
25
  ```
22
26
 
23
- [Other ways to install](docs/install.md), if you would rather not use Homebrew. adiff writes nothing
24
- into your repository — no `AGENTS.md`, no `CLAUDE.md`. Your agent finds the skill on its own.
27
+ adiff writes nothing into your repository — no `AGENTS.md`, no `CLAUDE.md`. Your agent finds the
28
+ skill on its own.
25
29
 
26
30
  Then ask it to walk you through it:
27
31
 
package/dist/main.js CHANGED
@@ -11109,7 +11109,7 @@ var init_pane = __esmMin((() => {
11109
11109
  init_drafts();
11110
11110
  init_skill();
11111
11111
  init_pane();
11112
- var version$1 = "0.1.0-alpha.143";
11112
+ var version$1 = "0.1.0-alpha.145";
11113
11113
  //#endregion
11114
11114
  //#region src/cli/upgrade.ts
11115
11115
  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, ranChild, runUpgrade, statusOf$1, sayFound, sayDone, attempted, REFRESH_MS, refreshSkills, updatedIn, sayRefreshed, upgradeReport;
@@ -13878,7 +13878,7 @@ var init_model = __esmMin((() => {
13878
13878
  }));
13879
13879
  //#endregion
13880
13880
  //#region src/tui/report.ts
13881
- var AROUND_CURSOR, TREE_ROWS, sign, visibleRows, visibleTree, facts, fenced, fully, minimal, buildReport;
13881
+ var AROUND_CURSOR, TREE_ROWS, sign, visibleRows, visibleTree, whereabouts, facts, fenced, fully, minimal, lastFailure, buildReport;
13882
13882
  var init_report = __esmMin((() => {
13883
13883
  init_dist();
13884
13884
  init_model();
@@ -13903,12 +13903,15 @@ var init_report = __esmMin((() => {
13903
13903
  visibleTree = (state) => treeWindow(state, TREE_ROWS).rows.map((row) => {
13904
13904
  return `${row.fileIndex === state.patchIndex ? ">" : " "} ${" ".repeat(row.depth)}${row.name}${row.kind === "directory" ? "/" : ""}`;
13905
13905
  });
13906
- facts = (state, around) => [
13907
- `- adiff ${version$1} on Node ${process.version}, ${platform()}, ${hostname()}`,
13908
- `- terminal ${around.width}x${around.height}`,
13906
+ whereabouts = (state, around) => [
13909
13907
  `- repo \`${around.repo}\``,
13910
13908
  `- branch \`${selectedBranch(state)?.branch ?? "none"}\``,
13911
- `- file \`${selectedPatch(state)?.path ?? "none"}\`, row ${state.cursor + 1}`,
13909
+ `- file \`${selectedPatch(state)?.path ?? "none"}\`, row ${state.cursor + 1}`
13910
+ ];
13911
+ facts = (state, around) => [
13912
+ `- adiff ${version$1} on Node ${process.version}, ${platform()}${state.reportFull ? `, ${hostname()}` : ""}`,
13913
+ `- terminal ${around.width}x${around.height}`,
13914
+ ...state.reportFull ? whereabouts(state, around) : [],
13912
13915
  `- screen \`${state.screen}\`, focus \`${state.focus}\`, selecting ${String(state.selecting)}`,
13913
13916
  `- ${state.vouched.length} of ${state.patches.length} reviewed`
13914
13917
  ];
@@ -13926,9 +13929,13 @@ var init_report = __esmMin((() => {
13926
13929
  ...fenced("Files", visibleTree(state)),
13927
13930
  ...fenced("Around the cursor", visibleRows(state))
13928
13931
  ];
13929
- minimal = () => ["_Sent as a minimal report: no file names, no code, no key history._", ""];
13932
+ minimal = () => ["_Sent as a minimal report: no machine, repo, branch or file name, no code, no key history, and nothing from a failure but its kind._", ""];
13933
+ lastFailure = (state, around) => {
13934
+ if (around.failure.length === 0) return "none";
13935
+ return state.reportFull ? around.failure.split("\n")[0] ?? "" : around.failureKind;
13936
+ };
13930
13937
  buildReport = (state, around) => {
13931
- const failure = around.failure.length === 0 ? "none" : around.failure.split("\n")[0];
13938
+ const failure = lastFailure(state, around);
13932
13939
  return [
13933
13940
  "# adiff bug report",
13934
13941
  "",
@@ -14200,14 +14207,14 @@ var init_command = __esmMin((() => {
14200
14207
  }),
14201
14208
  command({
14202
14209
  action: "branch.first",
14203
- title: "Go to the first worktree",
14210
+ title: "Go to the first branch",
14204
14211
  category: "Branches",
14205
14212
  keys: ["g"],
14206
14213
  screens: ["branches"]
14207
14214
  }),
14208
14215
  command({
14209
14216
  action: "branch.last",
14210
- title: "Go to the last worktree",
14217
+ title: "Go to the last branch",
14211
14218
  category: "Branches",
14212
14219
  keys: ["G"],
14213
14220
  screens: ["branches"]
@@ -14328,7 +14335,7 @@ var init_command = __esmMin((() => {
14328
14335
  }),
14329
14336
  command({
14330
14337
  action: "review.reload",
14331
- title: "Read the worktrees again",
14338
+ title: "Read the branches again",
14332
14339
  category: "Branches",
14333
14340
  keys: ["r"],
14334
14341
  screens: ["branches"],
@@ -16595,7 +16602,7 @@ var init_render = __esmMin((() => {
16595
16602
  BRANCH_NAME_MIN = 12;
16596
16603
  BRANCH_FIXED = 36;
16597
16604
  STATE_MIN = 11;
16598
- EMPTY_LIST = " nothing to review. No worktree differs from the branch it started from.";
16605
+ EMPTY_LIST = " nothing to review. No branch differs from the one it started from.";
16599
16606
  MODAL_MARGIN = 4;
16600
16607
  shareOf = (width, least) => Math.max(least, Math.min(PANEL_MAX, Math.floor(width * PANEL_SHARE)));
16601
16608
  homeWidth = (width, longest, said = STATE_MIN) => Math.max(0, Math.min(width - 2, Math.min(PANEL_MAX, Math.max(BRANCH_WIDTH, longest + BRANCH_FIXED + Math.max(STATE_MIN, said)))));
@@ -17234,7 +17241,7 @@ var init_render = __esmMin((() => {
17234
17241
  FORGE_SILENT = " could not reach the forge, so no pull request is shown";
17235
17242
  unaskedForge = (state) => state.forge === "silent" ? [fg(palette.attention)(`\n${FORGE_SILENT}`)] : [];
17236
17243
  branchHeading = (room) => ` ${columns({
17237
- name: "WORKTREE",
17244
+ name: "BRANCH",
17238
17245
  files: "FILES",
17239
17246
  added: "+",
17240
17247
  gone: "-",
@@ -17740,7 +17747,7 @@ var init_render = __esmMin((() => {
17740
17747
  this.header.content = this.headerText(state);
17741
17748
  this.footer.content = this.footerText(state);
17742
17749
  this.list.content = this.listText(state);
17743
- const many = state.branches.length === 1 ? "1 worktree" : `${state.branches.length} worktrees`;
17750
+ const many = state.branches.length === 1 ? "1 branch" : `${state.branches.length} branches`;
17744
17751
  const pane = this.homeRoom(state);
17745
17752
  const room = Math.max(HOME_PATH_MIN, pane - many.length - HOME_PATH_CHROME);
17746
17753
  this.landing.content = `${elide(shortPath(this.repo), room)} · ${many}`;
@@ -18504,6 +18511,7 @@ var init_app = __esmMin((() => {
18504
18511
  intents;
18505
18512
  consuming;
18506
18513
  failure = "";
18514
+ failureKind = "";
18507
18515
  reading;
18508
18516
  renderer;
18509
18517
  repo;
@@ -18666,6 +18674,7 @@ var init_app = __esmMin((() => {
18666
18674
  }
18667
18675
  fail(cause) {
18668
18676
  this.failure = cause instanceof Error ? `${cause.message}\n${cause.stack ?? ""}` : String(cause);
18677
+ this.failureKind = cause instanceof Error ? cause.name : "a failure with no name";
18669
18678
  }
18670
18679
  lastFailure() {
18671
18680
  return this.failure;
@@ -19596,6 +19605,7 @@ var init_app = __esmMin((() => {
19596
19605
  keys: this.keys,
19597
19606
  trail: this.trail,
19598
19607
  failure: this.failure,
19608
+ failureKind: this.failureKind,
19599
19609
  width: this.renderer.width,
19600
19610
  height: this.renderer.height
19601
19611
  });
@@ -19784,7 +19794,7 @@ var init_app = __esmMin((() => {
19784
19794
  const only = yield* summaryFor(repo, branch, base).pipe(orElseSucceed(() => void 0));
19785
19795
  return only === void 0 ? yield* listBranches(repo, base) : [only];
19786
19796
  });
19787
- missing = (branch, found) => branch !== void 0 && isNone(found) ? `no worktree here is on ${branch}` : "";
19797
+ missing = (branch, found) => branch !== void 0 && isNone(found) ? `no branch here is called ${branch}` : "";
19788
19798
  openingOn = (branches, branch) => {
19789
19799
  if (branch === void 0) return none();
19790
19800
  const at = branches.findIndex((candidate) => candidate.branch === branch);
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.143",
26
+ "version": "0.1.0-alpha.145",
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": {