@eliya-oss/agent-diff 0.1.0-alpha.144 → 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,23 @@
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
+
3
21
  ## 0.1.0-alpha.144
4
22
 
5
23
  ### Patch Changes
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.144";
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
  "",
@@ -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
  });
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.144",
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": {