@eliya-oss/agent-diff 0.1.0-alpha.59 → 0.1.0-alpha.60

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.60
4
+
5
+ ### Patch Changes
6
+
7
+ - Typing `adiff` opens the review on the repository you are standing in, rather than printing the help you have already read. Piped output and agents still get the help, so nothing that reads adiff's answers is left waiting on a terminal.
8
+
3
9
  ## 0.1.0-alpha.59
4
10
 
5
11
  ### Patch Changes
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.59";
9451
+ var version$1 = "0.1.0-alpha.60";
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;
@@ -10180,7 +10180,7 @@ var init_parse = __esmMin((() => {
10180
10180
  }));
10181
10181
  //#endregion
10182
10182
  //#region src/cli/catalog.ts
10183
- var worktreeOf, repoOf, branchOf, addressing, baseOf, based, repo, opening$1, file, range, READ_A_BRANCH, WRITE_COMMENTS, ANSWER_COMMENTS, FOLLOW_UP, SET_UP, catalog, commandNames, findCommand, verbsUnder, groups, NEAR, distance, NEAR_ENOUGH, nearestCommand;
10183
+ var worktreeOf, repoOf, branchOf, addressing, baseOf, based, repo, opening$2, file, range, READ_A_BRANCH, WRITE_COMMENTS, ANSWER_COMMENTS, FOLLOW_UP, SET_UP, catalog, commandNames, findCommand, verbsUnder, groups, NEAR, distance, NEAR_ENOUGH, nearestCommand;
10184
10184
  var init_catalog = __esmMin((() => {
10185
10185
  worktreeOf = {
10186
10186
  name: "worktree",
@@ -10218,7 +10218,7 @@ var init_catalog = __esmMin((() => {
10218
10218
  value: "path",
10219
10219
  about: "Repository whose worktrees are reviewed"
10220
10220
  };
10221
- opening$1 = {
10221
+ opening$2 = {
10222
10222
  name: "branch",
10223
10223
  required: false,
10224
10224
  value: "name",
@@ -10281,7 +10281,7 @@ var init_catalog = __esmMin((() => {
10281
10281
  safety: "read",
10282
10282
  options: [
10283
10283
  repo,
10284
- opening$1,
10284
+ opening$2,
10285
10285
  baseOf
10286
10286
  ],
10287
10287
  dataKey: "",
@@ -10295,7 +10295,7 @@ var init_catalog = __esmMin((() => {
10295
10295
  safety: "read",
10296
10296
  options: [
10297
10297
  repo,
10298
- opening$1,
10298
+ opening$2,
10299
10299
  baseOf
10300
10300
  ],
10301
10301
  dataKey: "pane",
@@ -10759,8 +10759,8 @@ init_catalog();
10759
10759
  const NAME_ROOM = 18;
10760
10760
  const OPTION_ROOM = 24;
10761
10761
  const version = () => version$1;
10762
- const opening = (about) => about.split(". ")[0] ?? about;
10763
- const line = (command) => ` ${command.name.padEnd(NAME_ROOM)}${opening(command.about)}`;
10762
+ const opening$1 = (about) => about.split(". ")[0] ?? about;
10763
+ const line = (command) => ` ${command.name.padEnd(NAME_ROOM)}${opening$1(command.about)}`;
10764
10764
  const banner = () => [
10765
10765
  `adiff ${version()}`,
10766
10766
  "",
@@ -10836,7 +10836,7 @@ const helpFor = (name) => {
10836
10836
  };
10837
10837
  const verb = (name) => {
10838
10838
  const command = findCommand(name);
10839
- return ` ${name.split(" ").slice(1).join(" ").padEnd(NAME_ROOM)}${opening(command?.about ?? "")}`;
10839
+ return ` ${name.split(" ").slice(1).join(" ").padEnd(NAME_ROOM)}${opening$1(command?.about ?? "")}`;
10840
10840
  };
10841
10841
  const helpUnder = (noun) => {
10842
10842
  const verbs = verbsUnder(noun);
@@ -16350,7 +16350,9 @@ const spoken = (given) => {
16350
16350
  if (first === "help") return rest.length === 0 ? help() : about(rest);
16351
16351
  return given.some((token) => token === "--help" || token === "-h") ? about(words) : void 0;
16352
16352
  };
16353
- const said = spoken(argv);
16353
+ const watched = () => process.stdout.isTTY && process.stdin.isTTY;
16354
+ const opening = argv.length === 0 && watched();
16355
+ const said = opening ? void 0 : spoken(argv);
16354
16356
  if (said !== void 0) {
16355
16357
  process.stdout.write(`${said}\n`);
16356
16358
  process.exit(0);
@@ -16361,6 +16363,6 @@ const reportFailure = (cause) => sync(() => {
16361
16363
  process.stderr.write(`${reported.line}\n`);
16362
16364
  process.exitCode = reported.exit;
16363
16365
  });
16364
- runFork(run(nameOf(argv), optionsFrom(argv)).pipe(provide(layer), catchCause(reportFailure)));
16366
+ runFork(run(opening ? "review open" : nameOf(argv), opening ? { repo: "." } : optionsFrom(argv)).pipe(provide(layer), catchCause(reportFailure)));
16365
16367
  //#endregion
16366
16368
  export {};
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.59",
26
+ "version": "0.1.0-alpha.60",
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": {