@eliya-oss/agent-diff 0.1.0-alpha.0 → 0.1.0-alpha.2
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 +12 -0
- package/LICENSE +21 -0
- package/README.md +72 -189
- package/bin/adiff.js +1 -1
- package/dist/main.js +14467 -0
- package/package.json +8 -6
- package/src/cli/catalog.ts +0 -178
- package/src/cli/commands.ts +0 -335
- package/src/cli/error.ts +0 -44
- package/src/cli/index.ts +0 -24
- package/src/cli/parse.ts +0 -31
- package/src/cli/report.ts +0 -96
- package/src/cli/story.ts +0 -223
- package/src/domain/narrative/coverage.ts +0 -54
- package/src/domain/narrative/index.ts +0 -4
- package/src/domain/narrative/model.ts +0 -46
- package/src/domain/narrative/version.ts +0 -63
- package/src/domain/patch/anchor.ts +0 -40
- package/src/domain/patch/index.ts +0 -7
- package/src/domain/patch/model.ts +0 -54
- package/src/domain/patch/parse.ts +0 -106
- package/src/domain/patch/render.ts +0 -48
- package/src/domain/patch/sticky.ts +0 -39
- package/src/domain/review/index.ts +0 -4
- package/src/domain/review/lifecycle.ts +0 -45
- package/src/domain/review/model.ts +0 -23
- package/src/domain/review/vouch.ts +0 -15
- package/src/main.ts +0 -186
- package/src/service/git/error.ts +0 -16
- package/src/service/git/index.ts +0 -3
- package/src/service/git/model.ts +0 -13
- package/src/service/git/run.ts +0 -27
- package/src/service/git/service.ts +0 -133
- package/src/service/store/error.ts +0 -11
- package/src/service/store/index.ts +0 -5
- package/src/service/store/model.ts +0 -33
- package/src/service/store/paths.ts +0 -25
- package/src/service/store/service.ts +0 -154
- package/src/testing/agent-surface.test.ts +0 -92
- package/src/testing/batch.test.ts +0 -93
- package/src/testing/branch-state.test.ts +0 -99
- package/src/testing/chrome-tone.test.ts +0 -57
- package/src/testing/comment-block.test.ts +0 -84
- package/src/testing/comment-walk.test.ts +0 -96
- package/src/testing/compose-box.test.ts +0 -97
- package/src/testing/compose.test.ts +0 -67
- package/src/testing/context.test.ts +0 -77
- package/src/testing/cursor.test.ts +0 -49
- package/src/testing/delivery.test.ts +0 -94
- package/src/testing/domains/agent/driver.ts +0 -50
- package/src/testing/domains/agent/index.ts +0 -2
- package/src/testing/domains/app/driver.ts +0 -168
- package/src/testing/domains/app/index.ts +0 -2
- package/src/testing/domains/branch/driver.ts +0 -51
- package/src/testing/domains/branch/index.ts +0 -3
- package/src/testing/domains/branch/model.ts +0 -39
- package/src/testing/domains/screen/driver.ts +0 -241
- package/src/testing/domains/screen/index.ts +0 -2
- package/src/testing/driver.ts +0 -31
- package/src/testing/escape.test.ts +0 -56
- package/src/testing/focus.test.ts +0 -104
- package/src/testing/footer-chips.test.ts +0 -65
- package/src/testing/footer.test.ts +0 -64
- package/src/testing/gaps.test.ts +0 -47
- package/src/testing/highlight.test.ts +0 -49
- package/src/testing/home-screen.test.ts +0 -51
- package/src/testing/index.ts +0 -4
- package/src/testing/inline-comments.test.ts +0 -131
- package/src/testing/marks.test.ts +0 -49
- package/src/testing/mouse.test.ts +0 -87
- package/src/testing/navigate.test.ts +0 -73
- package/src/testing/palette.test.ts +0 -68
- package/src/testing/pending.test.ts +0 -70
- package/src/testing/pin-align.test.ts +0 -37
- package/src/testing/progress.test.ts +0 -88
- package/src/testing/report.test.ts +0 -83
- package/src/testing/resume.test.ts +0 -39
- package/src/testing/review.test.ts +0 -181
- package/src/testing/roundtrip.test.ts +0 -70
- package/src/testing/scale.test.ts +0 -55
- package/src/testing/scroll-feel.test.ts +0 -81
- package/src/testing/sent-comments.test.ts +0 -106
- package/src/testing/state.ts +0 -55
- package/src/testing/sticky-removed.test.ts +0 -67
- package/src/testing/sticky.test.ts +0 -90
- package/src/testing/story-rail.test.ts +0 -122
- package/src/testing/story.test.ts +0 -183
- package/src/testing/stress.test.ts +0 -74
- package/src/testing/tree-collapse.test.ts +0 -108
- package/src/testing/tree-rows.test.ts +0 -66
- package/src/testing/tree.test.ts +0 -91
- package/src/testing/tui.test.ts +0 -73
- package/src/testing/typing.test.ts +0 -65
- package/src/testing/vouch-next.test.ts +0 -65
- package/src/testing/vouch-tui.test.ts +0 -77
- package/src/testing/wash.test.ts +0 -32
- package/src/testing/width.test.ts +0 -62
- package/src/tui/app.ts +0 -467
- package/src/tui/command.ts +0 -390
- package/src/tui/diffview.ts +0 -333
- package/src/tui/index.ts +0 -9
- package/src/tui/marks.ts +0 -102
- package/src/tui/match.ts +0 -34
- package/src/tui/model.ts +0 -310
- package/src/tui/reduce.ts +0 -305
- package/src/tui/render.ts +0 -897
- package/src/tui/report.ts +0 -74
- package/src/tui/session.ts +0 -32
- package/src/tui/theme.ts +0 -61
- package/src/tui/tree.ts +0 -149
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Ship the CLI as a bundled JavaScript file so a global install runs, and starts in about half the time.
|
|
8
|
+
|
|
9
|
+
## 0.1.0-alpha.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Simulation data reads like a real product, and the README is written for a first-time reader.
|
|
14
|
+
|
|
3
15
|
## 0.1.0-alpha.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 agent-diff contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,136 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Review the work an agent did in a git worktree, in the terminal, and hand your comments back to
|
|
4
|
-
the agent that is still sitting in that worktree.
|
|
5
|
-
|
|
6
|
-
You select lines on a diff the way you would on GitHub, write a comment, and the agent working in
|
|
7
|
-
that branch picks it up on its next `adiff take`. No pull request, no browser, no copying file
|
|
8
|
-
paths and line numbers into chat.
|
|
9
|
-
|
|
10
|
-
`comment add` sends immediately; `comment stage` holds a comment back until `review submit` sends
|
|
11
|
-
the whole set as one batch, so the agent wakes once for a review rather than once per remark —
|
|
12
|
-
the difference between a chat message and a pull request review.
|
|
13
|
-
|
|
14
|
-
The surface is built for agents as much as people: compact JSON, failures off stdout, exit codes
|
|
15
|
-
that mean something, and `adiff describe` so a caller can discover the commands instead of being
|
|
16
|
-
told about them.
|
|
17
|
-
|
|
18
|
-
## Requirements
|
|
19
|
-
|
|
20
|
-
Node 26 or newer. adiff draws through opentui, which reaches its native renderer over `node:ffi` —
|
|
21
|
-
a module Node only exposes behind `--experimental-ffi`, and only from 26 onward. Every entry point
|
|
22
|
-
in this repo passes the flag for you.
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
corepack disable pnpm
|
|
26
|
-
npm install -g --allow-scripts=pnpm pnpm@next-12
|
|
27
|
-
pnpm install
|
|
28
|
-
pnpm review
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
pnpm 12 is a Rust rewrite and is still beta, so
|
|
32
|
-
[corepack cannot install it](https://pnpm.io/installation) — install it directly, as above. The
|
|
33
|
-
`packageManager` pin in `package.json` stays for CI, which reads it through `pnpm/action-setup`.
|
|
34
|
-
|
|
35
|
-
## Working on the look
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
pnpm watch
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Builds the seven-branch workspace once under `~/.cache/adiff/watch`, then runs the terminal under
|
|
42
|
-
`node --watch`. Save a file in `src/` and it restarts, resuming on the same branch, file and line
|
|
43
|
-
you were looking at — the review remembers where you were whenever `ADIFF_SESSION` says where to.
|
|
44
|
-
`pnpm watch --fresh` throws the workspace away and builds it again.
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
pnpm serve # localhost:4319 — every screen, repainting as you save
|
|
48
|
-
pnpm play # localhost:4320 — the terminal itself, in the browser
|
|
49
|
-
```
|
|
1
|
+
<div align="center">
|
|
50
2
|
|
|
51
|
-
|
|
52
|
-
sends your keys and mouse to it, and paints back what it drew. It is not a mock: the branches are
|
|
53
|
-
real worktrees and a comment written in the browser lands in the store like any other. Dragging
|
|
54
|
-
selects lines, the wheel scrolls, and saving a file in `src/` restarts it on the file you were
|
|
55
|
-
reading.
|
|
56
|
-
|
|
57
|
-
The browser is the fastest way to work on the look: `serve` watches `src/`, recaptures every
|
|
58
|
-
screen in a fresh process on each save, and pushes a reload down an event stream. Colours are the
|
|
59
|
-
real ones, span by span, so a wrong shade shows up instead of hiding in a character dump. Nothing
|
|
60
|
-
of adiff runs in the page — it is a recording, not the terminal.
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
pnpm sketch # every glyph set, rendered side by side
|
|
64
|
-
pnpm sketch ring dot # just these two
|
|
65
|
-
ADIFF_MARKS=bubble pnpm simulate
|
|
66
|
-
```
|
|
3
|
+
# adiff
|
|
67
4
|
|
|
68
|
-
|
|
69
|
-
|
|
5
|
+
Review the work an agent did in a git worktree, in your terminal, and hand your comments back to
|
|
6
|
+
the agent still sitting in that worktree. You select lines the way you would on GitHub, write a
|
|
7
|
+
comment, and the agent picks it up.
|
|
70
8
|
|
|
71
|
-
|
|
9
|
+
<pre align="center">npm i -g @eliya-oss/agent-diff@alpha</pre>
|
|
72
10
|
|
|
73
|
-
|
|
74
|
-
pnpm simulate
|
|
75
|
-
```
|
|
11
|
+
</div>
|
|
76
12
|
|
|
77
|
-
|
|
78
|
-
and its call sites, a React panel gaining failure states, a deleted legacy file, a new module, and
|
|
79
|
-
a 42-file migration of just over a thousand lines each way — and opens the terminal on it. Nothing touches your real repos or `~/.adiff`; the
|
|
80
|
-
workspace is a temp directory, removed when you quit.
|
|
13
|
+
## Usage
|
|
81
14
|
|
|
82
15
|
```bash
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
16
|
+
adiff review open --repo .
|
|
17
|
+
adiff branch list --repo . --fields branch,files
|
|
18
|
+
adiff comment add --repo . --branch add-teammate-invitations --file src/api/invitations.ts --start 4 --end 5 --body "why"
|
|
19
|
+
adiff comment stage --repo . --branch add-teammate-invitations --file src/api/invitations.ts --start 4 --end 5 --body "why"
|
|
20
|
+
adiff review submit --repo . --branch add-teammate-invitations
|
|
21
|
+
adiff file vouch --repo . --branch add-teammate-invitations --file src/api/invitations.ts
|
|
22
|
+
adiff story show --worktree . --fields covered,total,uncovered
|
|
23
|
+
adiff describe
|
|
88
24
|
```
|
|
89
25
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
```
|
|
93
|
-
branches {"ok":true,"branches":[{"branch":"cdr-42-distinguish-missing-incidents","files":3,"added":18,...
|
|
94
|
-
vouch {"ok":true,"vouched":["src/api/incidents.ts"],"total":3}
|
|
95
|
-
agent takes {"ok":true,"comments":[{"file":"src/api/incidents.ts","side":"new","start":12,"end":13,
|
|
96
|
-
"snippet":" if (res.status === 404) throw new IncidentNotFound(id)\n if (!res.ok) ...",
|
|
97
|
-
"body":"Two throws where one union would do."}]}
|
|
98
|
-
```
|
|
26
|
+
`comment add` reaches the agent right away. `comment stage` holds a comment until `review submit`
|
|
27
|
+
sends the whole set as one wake-up, so the agent reads a review rather than a stream of remarks.
|
|
99
28
|
|
|
100
29
|
## Reviewing
|
|
101
30
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
Opens on the worktrees that have something to review. `enter` opens one, `j`/`k` move down the
|
|
107
|
-
diff, `v` starts a selection, `c` writes a comment, `ctrl+s` sends it. `[` and `]` move between
|
|
108
|
-
files, `q` quits. The footer always lists the keys for wherever you are.
|
|
109
|
-
|
|
110
|
-
Everything the terminal does is also a command, so nothing is trapped in the UI:
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
adiff branch list --repo .
|
|
114
|
-
adiff comment add --repo . --branch cdr-1 --file src/api.ts --start 4 --end 5 --body "why"
|
|
115
|
-
adiff comment stage --repo . --branch cdr-1 --file src/api.ts --start 4 --end 5 --body "why"
|
|
116
|
-
adiff review submit --repo . --branch cdr-1 # sends the staged comments as one review
|
|
117
|
-
adiff file vouch --repo . --branch cdr-1 --file src/api.ts
|
|
118
|
-
adiff review progress --repo . --branch cdr-1
|
|
119
|
-
adiff story show --worktree . # the story of a diff, and what it skips
|
|
120
|
-
adiff describe # the catalog, as JSON
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
Each prints one compact JSON line on stdout and exits 0. Failures go to **stderr** as
|
|
124
|
-
`{"ok":false,"error":{...}}`, so stdout is always parseable, with an exit code saying what to do
|
|
125
|
-
about it: `2` malformed request, `3` not found, `1` unexpected. Every error carries a `suggestion`
|
|
126
|
-
naming the command that resolves it.
|
|
127
|
-
|
|
128
|
-
`--fields` trims the answer to what you actually read:
|
|
129
|
-
|
|
130
|
-
```bash
|
|
131
|
-
adiff branch list --repo . --fields branch,files
|
|
132
|
-
{"ok":true,"branches":[{"branch":"cdr-1","files":3}]}
|
|
133
|
-
```
|
|
31
|
+
`adiff review open --repo .` lists the worktrees that have something to review. Enter opens one,
|
|
32
|
+
`j` and `k` move down the diff, `[` and `]` move between files, `v` starts a selection, `c` writes
|
|
33
|
+
a comment, `ctrl+s` sends it and `ctrl+a` adds it to the review instead. `m` marks a file reviewed,
|
|
34
|
+
`ctrl+p` finds any command by name, and the footer lists the keys for wherever you are.
|
|
134
35
|
|
|
135
36
|
## The agent side
|
|
136
37
|
|
|
@@ -139,101 +40,83 @@ In the worktree being reviewed:
|
|
|
139
40
|
```bash
|
|
140
41
|
adiff comment take --worktree . # everything written since the last take
|
|
141
42
|
adiff comment take --worktree . --wait 300 # block until something arrives
|
|
142
|
-
adiff story set --worktree . --json - # the reading order for the work just done
|
|
143
43
|
```
|
|
144
44
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
the file tree and scopes the diff to the step you are on. adiff computes coverage itself and
|
|
148
|
-
answers with the hunks no step claims, so a story can never hide part of the change: whatever the
|
|
149
|
-
agent left out shows up under `not in any step`.
|
|
45
|
+
Each comment carries the exact snippet it was written against, the side of the diff, and the commit
|
|
46
|
+
the diff was read at, so the agent needs no other reference. A comment is handed over once.
|
|
150
47
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
to
|
|
48
|
+
An agent can also record the reading order for its own work as a story: ordered steps over spans of
|
|
49
|
+
files, set with `adiff story set --worktree . --json -`. Where a branch has one, the terminal lists
|
|
50
|
+
its steps and scopes the diff to the step you are on. adiff computes the coverage itself, so a story
|
|
51
|
+
cannot hide code:
|
|
154
52
|
|
|
155
53
|
```bash
|
|
156
|
-
|
|
54
|
+
adiff story show --worktree . --fields covered,total,uncovered
|
|
55
|
+
{"ok":true,"story":{"covered":1,"total":3,"uncovered":[{"path":"docs/incidents.md","start":1,"end":6},{"path":"src/api/errors.ts","start":1,"end":11}]}}
|
|
157
56
|
```
|
|
158
57
|
|
|
159
|
-
##
|
|
160
|
-
|
|
161
|
-
Published as `@eliya-oss/agent-diff`, on the `alpha` lane — so every release is a prerelease under
|
|
162
|
-
the `alpha` dist-tag and nothing reaches `latest` by accident:
|
|
58
|
+
## Skill
|
|
163
59
|
|
|
164
60
|
```bash
|
|
165
|
-
|
|
61
|
+
npx skills add Newbie012/agent-diff --skill adiff
|
|
166
62
|
```
|
|
167
63
|
|
|
168
|
-
|
|
169
|
-
in the same commit; the person who knows what changed decides the bump:
|
|
64
|
+
Teaches an agent the whole loop: collect comments, act on them, write the story.
|
|
170
65
|
|
|
171
|
-
|
|
172
|
-
pnpm change @eliya-oss/agent-diff --bump patch --summary "Anchor comments to the right side."
|
|
173
|
-
```
|
|
66
|
+
## Requirements
|
|
174
67
|
|
|
175
|
-
|
|
68
|
+
Node 26 or newer. adiff draws through opentui, which reaches its native renderer over `node:ffi`, a
|
|
69
|
+
module Node exposes behind `--experimental-ffi` from 26 onward. Every entry point in this repo
|
|
70
|
+
passes the flag for you.
|
|
176
71
|
|
|
177
|
-
|
|
72
|
+
pnpm 12 is a Rust rewrite and still in beta, so
|
|
73
|
+
[corepack cannot install it](https://pnpm.io/installation):
|
|
178
74
|
|
|
179
75
|
```bash
|
|
180
|
-
|
|
181
|
-
|
|
76
|
+
corepack disable pnpm
|
|
77
|
+
npm install -g --allow-scripts=pnpm pnpm@next-12
|
|
78
|
+
pnpm install
|
|
182
79
|
```
|
|
183
80
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
81
|
+
`pnpm simulate` builds a throwaway repository with seven branches an agent has already worked on,
|
|
82
|
+
from a three-file error type up to a 42-file migration of just over a thousand lines each way, and
|
|
83
|
+
opens the terminal on it. Your real repos and `~/.adiff` are untouched, and the workspace is removed
|
|
84
|
+
when you quit. `pnpm simulate --probe` runs the whole round trip headless and prints it:
|
|
187
85
|
|
|
188
|
-
|
|
189
|
-
[
|
|
190
|
-
|
|
191
|
-
|
|
86
|
+
```
|
|
87
|
+
branches {"ok":true,"branches":[{"branch":"add-teammate-invitations","files":3,"added":27,"removed":2,...
|
|
88
|
+
vouch {"ok":true,"vouched":["src/api/incidents.ts"],"total":3}
|
|
89
|
+
agent takes {"ok":true,"comments":[{"file":"src/api/incidents.ts","side":"new","start":12,"end":13,
|
|
90
|
+
"snippet":" if (res.status === 404) throw new IncidentNotFound(id)\n if (!res.ok) ...",
|
|
91
|
+
"body":"Two throws where one union would do."}]}
|
|
92
|
+
```
|
|
192
93
|
|
|
193
|
-
|
|
94
|
+
## Notes
|
|
194
95
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
out by hand, once:
|
|
96
|
+
Everything the terminal does is also a command, so nothing is trapped in the UI. Each command prints
|
|
97
|
+
one compact JSON line on stdout and exits 0, and `--fields` trims the answer to what you read:
|
|
198
98
|
|
|
199
99
|
```bash
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
pnpm publish --tag alpha # never omit --tag, or it lands on latest
|
|
203
|
-
git commit -am "release 0.1.0-alpha.0" && git tag v0.1.0-alpha.0 && git push --follow-tags
|
|
100
|
+
adiff branch list --repo . --fields branch,files
|
|
101
|
+
{"ok":true,"branches":[{"branch":"add-teammate-invitations","files":3}]}
|
|
204
102
|
```
|
|
205
103
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
| Publisher | GitHub Actions |
|
|
211
|
-
| Organization or user | `Newbie012` |
|
|
212
|
-
| Repository | `agent-diff` |
|
|
213
|
-
| Workflow filename | `release.yml` |
|
|
214
|
-
| Allowed actions | `npm publish` |
|
|
215
|
-
|
|
216
|
-
Every release after that is credential-free. Until the package exists the workflow holds with a
|
|
217
|
-
notice instead of failing, and the hold clears itself once it does.
|
|
104
|
+
Failures go to stderr as `{"ok":false,"error":{...}}`, so stdout is always parseable, with an exit
|
|
105
|
+
code saying what to do about it: `2` malformed request, `3` not found, `1` unexpected. Every error
|
|
106
|
+
carries a `suggestion` naming the command that resolves it, and `adiff describe` returns the whole
|
|
107
|
+
catalog as JSON so a caller can discover the commands.
|
|
218
108
|
|
|
219
|
-
|
|
109
|
+
Project docs live in `.agents/`. `AGENTS.md` covers making a change, `ARCHITECTURE.md` how the code
|
|
110
|
+
is laid out.
|
|
220
111
|
|
|
221
|
-
|
|
112
|
+
## License
|
|
222
113
|
|
|
223
|
-
|
|
224
|
-
pnpm lane main --filter @eliya-oss/agent-diff
|
|
225
|
-
```
|
|
114
|
+
MIT
|
|
226
115
|
|
|
227
|
-
|
|
228
|
-
records one beta quirk: on a lane, a minor intent at `0.1.0` produces `0.1.0-alpha.0` rather than
|
|
229
|
-
`0.2.0-alpha.0`.
|
|
230
|
-
|
|
231
|
-
## Working on adiff
|
|
232
|
-
|
|
233
|
-
```bash
|
|
234
|
-
pnpm check # typecheck, lint, style rules, tests
|
|
235
|
-
```
|
|
116
|
+
## Sponsors
|
|
236
117
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
118
|
+
<p align="center">
|
|
119
|
+
<a href="https://github.com/sponsors/Newbie012">
|
|
120
|
+
<img src="https://cdn.jsdelivr.net/gh/newbie012/sponsors/sponsors.svg">
|
|
121
|
+
</a>
|
|
122
|
+
</p>
|
package/bin/adiff.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --experimental-ffi --disable-warning=ExperimentalWarning
|
|
2
|
-
import "../
|
|
2
|
+
import "../dist/main.js"
|