@eliya-oss/agent-diff 0.1.0-alpha.155 → 0.1.0-alpha.156
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 +16 -0
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/skills/adiff/SKILL.md +12 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.156
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(skill): the skill tells an agent to claim the runs a layer explains, where it used to recommend a span over the whole file.
|
|
8
|
+
|
|
9
|
+
<details><summary>What was wrong</summary>
|
|
10
|
+
|
|
11
|
+
The skill said a span from line 1 to past the end of the file "covers a file whatever happens to it",
|
|
12
|
+
against a tight range that "goes stale on the next push". An agent following that writes a reading
|
|
13
|
+
order whose every layer claims the whole file, and the terminal then draws the whole diff for each
|
|
14
|
+
one — eleven layers over one file meant reading it eleven times. Staleness is the cheaper problem:
|
|
15
|
+
adiff says when a set is stale.
|
|
16
|
+
|
|
17
|
+
</details>
|
|
18
|
+
|
|
3
19
|
## 0.1.0-alpha.155
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -11309,7 +11309,7 @@ var init_pane = __esmMin((() => {
|
|
|
11309
11309
|
//#region package.json
|
|
11310
11310
|
init_drafts();
|
|
11311
11311
|
init_pane();
|
|
11312
|
-
var version$1 = "0.1.0-alpha.
|
|
11312
|
+
var version$1 = "0.1.0-alpha.156";
|
|
11313
11313
|
//#endregion
|
|
11314
11314
|
//#region src/cli/upgrade.ts
|
|
11315
11315
|
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$1, newer, tagIn, fetched, askLatest, here, findUpgrade, willUpgrade, ranChild, runUpgrade, statusOf$1, sayFound, sayDone, attempted, SAY_SKILL_TOO, upgradeReport;
|
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.
|
|
26
|
+
"version": "0.1.0-alpha.156",
|
|
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": {
|
package/skills/adiff/SKILL.md
CHANGED
|
@@ -257,9 +257,9 @@ used to cover less than you thought now fails loudly instead.
|
|
|
257
257
|
`total` counts hunks. `covered` counts the ones where every changed line sits inside a layer, and
|
|
258
258
|
`partial` the ones a layer explains only some of. `uncovered` names the runs of changed lines no
|
|
259
259
|
layer claims, so it reads as line numbers a reviewer would otherwise have to find alone: claim them
|
|
260
|
-
and set the layers again. Done means `uncovered` is empty. `vanished` names
|
|
261
|
-
that this branch does not change, which usually means a typo in a path. Read
|
|
262
|
-
with:
|
|
260
|
+
and set the layers again. Done means `uncovered` is empty and `shared` is zero. `vanished` names
|
|
261
|
+
paths a layer points at that this branch does not change, which usually means a typo in a path. Read
|
|
262
|
+
it back at any time with:
|
|
263
263
|
|
|
264
264
|
```bash
|
|
265
265
|
adiff layers show --worktree . --fields covered,partial,total,uncovered
|
|
@@ -271,8 +271,15 @@ uncovered run at 395-409 — line numbers past the end of the file as it now sta
|
|
|
271
271
|
new file cannot reach them; only a span whose `end` runs past the end of the file can. Write one, or
|
|
272
272
|
say the run is unreachable, rather than reading the leftover as a layer you forgot.
|
|
273
273
|
|
|
274
|
-
That
|
|
275
|
-
happens to it,
|
|
274
|
+
That case aside, claim the runs you explain and nothing more. A span from line 1 to past the end of
|
|
275
|
+
the file covers whatever happens to it, and it is the wrong trade: the terminal scopes a layer to the
|
|
276
|
+
lines it claims, so a layer claiming the whole file draws the whole diff, and eleven layers over one
|
|
277
|
+
file draw it eleven times. Staleness is cheap by comparison — adiff says when a set is stale and the
|
|
278
|
+
reviewer asks for another.
|
|
279
|
+
|
|
280
|
+
`shared` in the answer counts the hunks more than one layer claims. Coverage cannot see this: a
|
|
281
|
+
reading order whose layers each claim the whole diff reports the same `covered` as one whose layers
|
|
282
|
+
each claim their own run. Done means `uncovered` is empty **and** `shared` is zero.
|
|
276
283
|
|
|
277
284
|
Setting layers again supersedes the previous set and bumps `version`; the set records the commit it
|
|
278
285
|
was written for, and adiff reports it as `stale` once the branch moves past that commit. Once a
|