@eliya-oss/agent-diff 0.1.0-alpha.198 → 0.1.0-alpha.199

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.199
4
+
5
+ ### Patch Changes
6
+
7
+ - fix(CLI): a change `adiff serve` reports names the file adiff wrote, not `other`, so an agent looking for comments no longer makes a second client re-read the drafts and remarks twice a second.
8
+
9
+ <details><summary>What was wrong</summary>
10
+
11
+ adiff writes each file of a review to a temporary name first and then moves it into place. The watch named that temporary file `other`, so every write, including the agent's half-second look for comments, also read as a change to something unknown.
12
+
13
+ </details>
14
+
3
15
  ## 0.1.0-alpha.198
4
16
 
5
17
  ### Patch Changes
package/dist/main.js CHANGED
@@ -10083,7 +10083,7 @@ var init_config = __esmMin((() => {
10083
10083
  //#region package.json
10084
10084
  init_pane();
10085
10085
  init_config();
10086
- var version$1 = "0.1.0-alpha.198";
10086
+ var version$1 = "0.1.0-alpha.199";
10087
10087
  //#endregion
10088
10088
  //#region src/cli/error.ts
10089
10089
  var UnknownCommand, MissingOption, UnknownField, UnknownOption, BadOption, RegistryUnanswered, NotServed, BadRequest;
@@ -11573,7 +11573,11 @@ var init_serve = __esmMin((() => {
11573
11573
  "layers.json": "layers",
11574
11574
  "watch.json": "watch"
11575
11575
  };
11576
- kindOf = (name) => name === null ? "other" : KIND_OF[name] ?? "other";
11576
+ kindOf = (name) => {
11577
+ if (name === null) return "other";
11578
+ const file = Object.keys(KIND_OF).find((known) => name === known || name.startsWith(`${known}.`));
11579
+ return file === void 0 ? "other" : KIND_OF[file] ?? "other";
11580
+ };
11577
11581
  settled$1 = (folder, tell) => {
11578
11582
  mkdirSync(folder, { recursive: true });
11579
11583
  let timer;
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.198",
26
+ "version": "0.1.0-alpha.199",
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": {