@eliya-oss/agent-diff 0.1.0-alpha.149 → 0.1.0-alpha.150
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/.claude/skills/create-pr/SKILL.md +5 -1
- package/CHANGELOG.md +34 -0
- package/README.md +18 -42
- package/dist/main.js +121 -45
- package/package.json +1 -1
|
@@ -66,9 +66,13 @@ So a test that needs one of those things has two honest endings, and no third:
|
|
|
66
66
|
**Never paste a recording you have not looked at.** Take the still of the same trace and read it:
|
|
67
67
|
|
|
68
68
|
```bash
|
|
69
|
-
pnpm shot --trace <trace.jsonl> --test-name "<when> > <then>" --
|
|
69
|
+
pnpm shot --trace <trace.jsonl> --test-name "<when> > <then>" --local
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
+
`--local` writes the frame to `shots/` and uploads nothing, so reading it first publishes nothing.
|
|
73
|
+
Leave `--local` off once the frame is the one you meant, and the capture uploads and prints the
|
|
74
|
+
markdown to paste.
|
|
75
|
+
|
|
72
76
|
The still is the last frame of the film. If it does not show the behavior the test names, the film
|
|
73
77
|
does not either — and a film that shows the wrong screen is worse than no film, because a reviewer
|
|
74
78
|
believes it. `pnpm record` writes its trace to a temp directory and prints the path in its error
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.150
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- breaking(preferences): the pull request's remarks are read only after you turn "Read the pull request's review" on.
|
|
8
|
+
|
|
9
|
+
<details><summary>What changed</summary>
|
|
10
|
+
|
|
11
|
+
adiff read every branch's pull request as soon as you opened it, whether or not you wanted its
|
|
12
|
+
review in the terminal. The preference is off for everyone, so a repository with nothing to read
|
|
13
|
+
costs nothing. Turn it on under `,` in the review, or with `adiff config set --name remarks --value on`.
|
|
14
|
+
|
|
15
|
+
</details>
|
|
16
|
+
|
|
17
|
+
perf(review): reading a branch's remarks takes 0.75s, down from 2.7s on this repository, and the diff no longer waits for it.
|
|
18
|
+
|
|
19
|
+
<details><summary>What was wrong</summary>
|
|
20
|
+
|
|
21
|
+
Pressing `r` sat there. Every reload listed the pull requests, looked one up, asked who owned the
|
|
22
|
+
repository and only then read the threads — four round trips to GitHub before the diff came back.
|
|
23
|
+
It is one request now, it runs behind the diff, and the footer says it is reading the pull request
|
|
24
|
+
until the remarks land.
|
|
25
|
+
|
|
26
|
+
</details>
|
|
27
|
+
|
|
28
|
+
fix(review panel): the box you reply to a remark in quotes the remark and says the reply goes to the pull request.
|
|
29
|
+
|
|
30
|
+
<details><summary>What was wrong</summary>
|
|
31
|
+
|
|
32
|
+
`c` wrote a comment for the agent and `R` posted publicly on the pull request, and both opened the
|
|
33
|
+
same box over the same lines of code, with the same "send it" underneath.
|
|
34
|
+
|
|
35
|
+
</details>
|
|
36
|
+
|
|
3
37
|
## 0.1.0-alpha.149
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@ you comment on the lines in a terminal, the agent that wrote them answers under
|
|
|
7
7
|
point stays open until you settle it.
|
|
8
8
|
|
|
9
9
|
<pre align="center">brew install Newbie012/tap/adiff</pre>
|
|
10
|
+
<pre align="center">npx skills add Newbie012/agent-diff --skill adiff -g</pre>
|
|
10
11
|
|
|
11
12
|
<p align="center"><a href="docs/install.md">Other ways to install</a></p>
|
|
12
13
|
|
|
@@ -14,57 +15,32 @@ point stays open until you settle it.
|
|
|
14
15
|
|
|
15
16
|
</div>
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
### Features
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
- ⚡ **Live review** - A comment reaches the agent at once, and it starts work.
|
|
21
|
+
- 💬 **Answers in place** - The agent replies under your comment, or asks you to decide.
|
|
22
|
+
- 🌿 **Review in parallel** - Keep several agents going from one list of branches.
|
|
23
|
+
- 🔗 **Pull request remarks** - Turn them on, then accept or dismiss each one without leaving the terminal.
|
|
24
|
+
- 🗺️ **Read in layers** - Follow the agent's own order, or read the diff by file.
|
|
21
25
|
|
|
22
|
-
|
|
23
|
-
brew install Newbie012/tap/adiff
|
|
24
|
-
npx skills add Newbie012/agent-diff --skill adiff -g
|
|
25
|
-
```
|
|
26
|
+
### Usage
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
repository you are standing in, and a skill written into the repository is invisible to an agent
|
|
31
|
-
working in a worktree of it unless you commit it. Drop `-g` if your team has adopted adiff and wants
|
|
32
|
-
it committed.
|
|
33
|
-
|
|
34
|
-
Your agent finds the skill on its own from there.
|
|
35
|
-
|
|
36
|
-
Then ask it to walk you through it:
|
|
37
|
-
|
|
38
|
-
> Read the adiff skill and onboard me: hand your current work over for review, and tell me what to
|
|
39
|
-
> press.
|
|
40
|
-
|
|
41
|
-
From then on the loop is: the agent hands work over, you read it, and it answers what you wrote.
|
|
42
|
-
Open a review yourself with `adiff review open --repo .`, and press `?` for every key.
|
|
43
|
-
|
|
44
|
-
## For agents
|
|
45
|
-
|
|
46
|
-
Three commands are the whole loop:
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
adiff comment take --worktree . --wait 300 # what the reviewer wrote, with the code it was on
|
|
50
|
-
adiff comment answer --worktree . --id <id> --body "what you did about it"
|
|
51
|
-
adiff review pane --repo . # put the review in front of them, split in tmux
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Everything answers JSON on stdout and `{"ok":false,"error":{...}}` on stderr, with a `suggestion`
|
|
55
|
-
naming the command that resolves it. `adiff describe` returns the whole catalog, so nothing here has
|
|
56
|
-
to be memorised. [The handover in detail](docs/handover.md) covers layers, coverage and the rest.
|
|
28
|
+
1. Install adiff and its skill with the two commands above.
|
|
29
|
+
2. In your agent, run `/adiff layer this work and hand it over for review`.
|
|
30
|
+
3. Comment on the lines. The agent answers under your words, and `?` lists every key.
|
|
57
31
|
|
|
58
32
|
## Requirements
|
|
59
33
|
|
|
60
|
-
The
|
|
61
|
-
global npm install
|
|
62
|
-
runs the terminal on that
|
|
34
|
+
The Homebrew formula installs one compiled binary, which draws the terminal itself and needs no Node
|
|
35
|
+
at all. A global npm install runs on Node 22 or newer, and the terminal there needs Node 26: adiff
|
|
36
|
+
finds one among your fnm, nvm, asdf, volta and Homebrew installs and runs the terminal on that, and
|
|
37
|
+
says so when there is none, while every other command runs where you are.
|
|
63
38
|
|
|
64
39
|
## Notes
|
|
65
40
|
|
|
66
|
-
adiff is alpha, and one person's tool. Every release goes out under the `alpha` tag.
|
|
67
|
-
|
|
41
|
+
adiff is alpha, and one person's tool. Every release goes out under the `alpha` tag. The agent's
|
|
42
|
+
side of the loop is in [docs/handover.md](docs/handover.md), and the project docs live in `.agents/`:
|
|
43
|
+
`AGENTS.md` covers making a change, `ARCHITECTURE.md` how the code is laid out.
|
|
68
44
|
|
|
69
45
|
## License
|
|
70
46
|
|
package/dist/main.js
CHANGED
|
@@ -1584,7 +1584,7 @@ var init_option = __esmMin((() => {
|
|
|
1584
1584
|
}));
|
|
1585
1585
|
//#endregion
|
|
1586
1586
|
//#region node_modules/.pnpm/effect@4.0.0-rc.110/node_modules/effect/dist/internal/result.js
|
|
1587
|
-
var TypeId$19, CommonProto, SuccessProto, FailureProto, isResult, isFailure$1, isSuccess$
|
|
1587
|
+
var TypeId$19, CommonProto, SuccessProto, FailureProto, isResult, isFailure$1, isSuccess$1, fail$4, succeed$7;
|
|
1588
1588
|
var init_result = __esmMin((() => {
|
|
1589
1589
|
init_Equal();
|
|
1590
1590
|
init_Formatter();
|
|
@@ -1609,7 +1609,7 @@ var init_result = __esmMin((() => {
|
|
|
1609
1609
|
_tag: "Success",
|
|
1610
1610
|
_op: "Success",
|
|
1611
1611
|
[symbol](that) {
|
|
1612
|
-
return isResult(that) && isSuccess$
|
|
1612
|
+
return isResult(that) && isSuccess$1(that) && equals$2(this.success, that.success);
|
|
1613
1613
|
},
|
|
1614
1614
|
[symbol$1]() {
|
|
1615
1615
|
return combine(hash(this._tag))(hash(this.success));
|
|
@@ -1647,7 +1647,7 @@ var init_result = __esmMin((() => {
|
|
|
1647
1647
|
});
|
|
1648
1648
|
isResult = (input) => hasProperty(input, TypeId$19);
|
|
1649
1649
|
isFailure$1 = (result) => result._tag === "Failure";
|
|
1650
|
-
isSuccess$
|
|
1650
|
+
isSuccess$1 = (result) => result._tag === "Success";
|
|
1651
1651
|
fail$4 = (failure) => {
|
|
1652
1652
|
const a = Object.create(FailureProto);
|
|
1653
1653
|
a.failure = failure;
|
|
@@ -1736,14 +1736,13 @@ var init_Option = __esmMin((() => {
|
|
|
1736
1736
|
map$4 = /*#__PURE__*/ dual(2, (self, f) => isNone(self) ? none() : some(f(self.value)));
|
|
1737
1737
|
flatMap$2 = /*#__PURE__*/ dual(2, (self, f) => isNone(self) ? none() : f(self.value));
|
|
1738
1738
|
filter$1 = /*#__PURE__*/ dual(2, (self, predicate) => isNone(self) ? none() : predicate(self.value) ? some(self.value) : none());
|
|
1739
|
-
})), succeed$6, fail$3, isFailure,
|
|
1739
|
+
})), succeed$6, fail$3, isFailure, getOrElse;
|
|
1740
1740
|
var init_Result = __esmMin((() => {
|
|
1741
1741
|
init_Function();
|
|
1742
1742
|
init_result();
|
|
1743
1743
|
succeed$6 = succeed$7;
|
|
1744
1744
|
fail$3 = fail$4;
|
|
1745
1745
|
isFailure = isFailure$1;
|
|
1746
|
-
isSuccess$1 = isSuccess$2;
|
|
1747
1746
|
getOrElse = /*#__PURE__*/ dual(2, (self, onFailure) => isFailure(self) ? onFailure(self.failure) : self.success);
|
|
1748
1747
|
})), Array$1, fromIterable$1, append$1, appendAll, isArrayNonEmpty, isReadonlyArrayNonEmpty, lastNonEmpty, hashBucketsAdd, union$1, empty$2, of, map$3, dedupe, init_Array = __esmMin((() => {
|
|
1749
1748
|
init_Equal();
|
|
@@ -8823,7 +8822,7 @@ var init_error$3 = __esmMin((() => {
|
|
|
8823
8822
|
}));
|
|
8824
8823
|
//#endregion
|
|
8825
8824
|
//#region src/service/forge/service.ts
|
|
8826
|
-
var Forge, LIMIT, TIMEOUT_MS$1, SEND_TIMEOUT_MS, MOST_OUTPUT, FIELDS$1, Row, decode$1, SAID, stateOf$2, ended, ask, show, read, pulls, openPull, NUMBER_FIELDS, Named, readNamed, gh, named$1, head, sideName, commentBody, bodyFor, Landed, readLanded, keyOf$2, counted, acknowledged, landedIn, THREADS, Said, Thread, Page, Threads, readThreads, ANONYMOUS, heardFrom$1, someLine, hasNoLine, quotedIn, spanIn, remarkOf, ownerOf, asked, whereOf, threadsIn$1, unresolved, PAGES, everyThread, answer$1, remarks, review, ForgeLive;
|
|
8825
|
+
var Forge, LIMIT, TIMEOUT_MS$1, SEND_TIMEOUT_MS, MOST_OUTPUT, FIELDS$1, Row, decode$1, SAID, stateOf$2, ended, ask, show, read, pulls, openPull, NUMBER_FIELDS, Named, readNamed, gh, named$1, head, sideName, commentBody, bodyFor, Landed, readLanded, keyOf$2, counted, acknowledged, landedIn, THREADS, Said, Thread, Page, Held$1, Threads, readThreads, ANONYMOUS, heardFrom$1, someLine, hasNoLine, quotedIn, spanIn, remarkOf, ownerOf, HERE, asked, whereOf, threadsIn$1, unresolved, PAGES, everyThread, answer$1, remarks, review, ForgeLive;
|
|
8827
8826
|
var init_service$2 = __esmMin((() => {
|
|
8828
8827
|
init_dist();
|
|
8829
8828
|
init_error$3();
|
|
@@ -9009,17 +9008,19 @@ var init_service$2 = __esmMin((() => {
|
|
|
9009
9008
|
return [at];
|
|
9010
9009
|
});
|
|
9011
9010
|
};
|
|
9012
|
-
THREADS = `query($owner:String!,$name:String!,$
|
|
9011
|
+
THREADS = `query($owner:String!,$name:String!,$branch:String!,$after:String){
|
|
9013
9012
|
repository(owner:$owner,name:$name){
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9013
|
+
pullRequests(headRefName:$branch,first:1,orderBy:{field:CREATED_AT,direction:DESC}){
|
|
9014
|
+
nodes{
|
|
9015
|
+
reviewThreads(first:50,after:$after){
|
|
9016
|
+
pageInfo{ hasNextPage endCursor }
|
|
9017
|
+
nodes{
|
|
9018
|
+
id isResolved isOutdated path diffSide
|
|
9019
|
+
line originalLine startLine originalStartLine
|
|
9020
|
+
comments(first:50){
|
|
9021
|
+
totalCount
|
|
9022
|
+
nodes{ databaseId author{login} body diffHunk originalCommit{oid} }
|
|
9023
|
+
}
|
|
9023
9024
|
}
|
|
9024
9025
|
}
|
|
9025
9026
|
}
|
|
@@ -9052,10 +9053,11 @@ var init_service$2 = __esmMin((() => {
|
|
|
9052
9053
|
hasNextPage: Boolean,
|
|
9053
9054
|
endCursor: optionalKey(NullishOr(String$1))
|
|
9054
9055
|
});
|
|
9055
|
-
|
|
9056
|
+
Held$1 = Struct({ reviewThreads: Struct({
|
|
9056
9057
|
pageInfo: optionalKey(Page),
|
|
9057
9058
|
nodes: ArraySchema(Thread)
|
|
9058
|
-
}) })
|
|
9059
|
+
}) });
|
|
9060
|
+
Threads = Struct({ data: Struct({ repository: Struct({ pullRequests: Struct({ nodes: ArraySchema(Held$1) }) }) }) });
|
|
9059
9061
|
readThreads = decodeUnknownEffect(Threads);
|
|
9060
9062
|
ANONYMOUS = "someone";
|
|
9061
9063
|
heardFrom$1 = (said) => ({
|
|
@@ -9103,17 +9105,20 @@ var init_service$2 = __esmMin((() => {
|
|
|
9103
9105
|
name
|
|
9104
9106
|
};
|
|
9105
9107
|
});
|
|
9106
|
-
|
|
9108
|
+
HERE = [
|
|
9109
|
+
"-F",
|
|
9110
|
+
"owner={owner}",
|
|
9111
|
+
"-F",
|
|
9112
|
+
"name={repo}"
|
|
9113
|
+
];
|
|
9114
|
+
asked = (repo, branch, after) => gh(repo, [
|
|
9107
9115
|
"api",
|
|
9108
9116
|
"graphql",
|
|
9109
9117
|
"-f",
|
|
9110
9118
|
`query=${THREADS}`,
|
|
9119
|
+
...HERE,
|
|
9111
9120
|
"-f",
|
|
9112
|
-
`
|
|
9113
|
-
"-f",
|
|
9114
|
-
`name=${where.name}`,
|
|
9115
|
-
"-F",
|
|
9116
|
-
`number=${where.number}`,
|
|
9121
|
+
`branch=${branch}`,
|
|
9117
9122
|
...after === void 0 ? [] : ["-f", `after=${after}`]
|
|
9118
9123
|
]);
|
|
9119
9124
|
whereOf = fn("Forge.whereOf")(function* (repo, branch) {
|
|
@@ -9136,19 +9141,20 @@ var init_service$2 = __esmMin((() => {
|
|
|
9136
9141
|
return (yield* mapError(readThreads(parsed), (cause) => new ForgeUnavailable({
|
|
9137
9142
|
repo,
|
|
9138
9143
|
reason: String(cause)
|
|
9139
|
-
}))).data.repository.
|
|
9144
|
+
}))).data.repository.pullRequests.nodes[0]?.reviewThreads;
|
|
9140
9145
|
});
|
|
9141
9146
|
unresolved = (nodes) => nodes.filter((thread) => !thread.isResolved).flatMap((thread) => {
|
|
9142
9147
|
const found = remarkOf(thread);
|
|
9143
9148
|
return found === void 0 ? [] : [found];
|
|
9144
9149
|
});
|
|
9145
9150
|
PAGES = 20;
|
|
9146
|
-
everyThread = fn("Forge.everyThread")(function* (repo,
|
|
9151
|
+
everyThread = fn("Forge.everyThread")(function* (repo, branch) {
|
|
9147
9152
|
const held = [];
|
|
9148
9153
|
let after;
|
|
9149
9154
|
for (let page = 0; page < PAGES; page += 1) {
|
|
9150
|
-
const raw = yield* asked(repo,
|
|
9155
|
+
const raw = yield* asked(repo, branch, after);
|
|
9151
9156
|
const found = yield* threadsIn$1(repo, raw);
|
|
9157
|
+
if (found === void 0) return held;
|
|
9152
9158
|
held.push(...found.nodes);
|
|
9153
9159
|
if (found.pageInfo?.hasNextPage !== true) return held;
|
|
9154
9160
|
const next = found.pageInfo.endCursor;
|
|
@@ -9183,8 +9189,7 @@ var init_service$2 = __esmMin((() => {
|
|
|
9183
9189
|
}) : void_;
|
|
9184
9190
|
});
|
|
9185
9191
|
remarks = fn("Forge.remarks")(function* (repo, branch) {
|
|
9186
|
-
|
|
9187
|
-
return unresolved(yield* everyThread(repo, yield* whereOf(repo, branch)));
|
|
9192
|
+
return unresolved(yield* everyThread(repo, branch));
|
|
9188
9193
|
});
|
|
9189
9194
|
review = fn("Forge.review")(function* (repo, branch, comments) {
|
|
9190
9195
|
const pull = yield* named$1(repo, branch);
|
|
@@ -9337,6 +9342,7 @@ var init_schema = __esmMin((() => {
|
|
|
9337
9342
|
hideReviewed: optionalKey(Boolean),
|
|
9338
9343
|
hideSettled: optionalKey(Boolean),
|
|
9339
9344
|
newestFirst: optionalKey(Boolean),
|
|
9345
|
+
remarks: optionalKey(Boolean),
|
|
9340
9346
|
hold: optionalKey(Boolean)
|
|
9341
9347
|
});
|
|
9342
9348
|
Watching = Struct({ lookedAt: String$1 });
|
|
@@ -10502,6 +10508,12 @@ var init_model$2 = __esmMin((() => {
|
|
|
10502
10508
|
about: "The newest comment sits at the top of the panel.",
|
|
10503
10509
|
byDefault: true
|
|
10504
10510
|
},
|
|
10511
|
+
{
|
|
10512
|
+
name: "remarks",
|
|
10513
|
+
title: "Read the pull request's review",
|
|
10514
|
+
about: "The review shows the remarks left on the branch's pull request.",
|
|
10515
|
+
byDefault: false
|
|
10516
|
+
},
|
|
10505
10517
|
{
|
|
10506
10518
|
name: "hold",
|
|
10507
10519
|
title: "Hold comments until you send them",
|
|
@@ -11300,7 +11312,7 @@ var init_pane = __esmMin((() => {
|
|
|
11300
11312
|
//#region package.json
|
|
11301
11313
|
init_drafts();
|
|
11302
11314
|
init_pane();
|
|
11303
|
-
var version$1 = "0.1.0-alpha.
|
|
11315
|
+
var version$1 = "0.1.0-alpha.150";
|
|
11304
11316
|
//#endregion
|
|
11305
11317
|
//#region src/cli/upgrade.ts
|
|
11306
11318
|
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, SAY_SKILL_TOO, upgradeReport;
|
|
@@ -13676,7 +13688,7 @@ var init_tree = __esmMin((() => {
|
|
|
13676
13688
|
return node.children.reduce((total, child) => total + filesUnder(tree, child), 0);
|
|
13677
13689
|
};
|
|
13678
13690
|
crowdedDirectories = (tree, limit) => tree.nodes.filter((node) => node.kind === "directory" && directFiles(tree, node.id) > limit).map((node) => node.path);
|
|
13679
|
-
})), HOLDS, chosenNow, withChosen, preferenceRows, nothingReviewed, initialState, TREE_MAX, TREE_ROOMY, TREE_WIDE, TREE_MIN, TREE_SHARE, DIFF_MIN, DIFF_ROOMY, bodyRoom, treeWidth, tooSmall, reviewWidth, panelFits, panelShown, onLayers, selectedLayer, proseFor, kept, layerHolds, layerFiles, layerHolding, layerOpen, chunked, packed, shortened, wordWrapped, wrapped, clip, TITLE_ROWS, titleRows, shortDir, fileRow$1, shownFiles, dirOf, fileRows, layerRead, layerDone, countRow, NOTHING_LEFT, textRows, emptyRows, layerBody, holdsCursor, layerCard, layerRows, nearFirst, layerFitted, restingAt, railTop, PANE_CHROME$1, layerRoomIn, railWindow, selectedBranch, selectedPatch, pullHere, knownToHaveNoPull, treeOf, reviewedCountIn, CROWDED, treeRows, crowdedOf, foldersOfFile, isReviewed, treeStart, treeWindow, MINUTE, HOUR, DAY, sinceThen, threadStand, STAND_WEIGHT, louder, threadsOn, hiddenLines, rowsUnder, markedStands, carriesLine, selectedRows, snippetOf, selectedLineCount, lineOf, brokenAt, laidLine, laidDraft, COMPOSE_BOX, COMPOSE_MARGIN, COMPOSE_PAD, COMPOSE_LEAST, composeBox, composeRoom$1, composeTarget, remarkAnswering, answerTarget, replyTarget, threadReplying, VOICES, threadQuote, pickedText, takenRows, selectedLines, shownMatches, matchHere, selectionReadout, CONTEXT_STEPS, wholeFileOff, contextToggled, layerContext, newLineAt, sourceLineAt, rowAtSourceLine, rowShowing, lineOnSide, needingRowsIn, commentRowsIn, threadsAtRow, remarkShown, remarksAtRow, remarkRowsIn, stopsIn, stopsAtRow, remarkAtStop, remarkAtRow, remarkInPanel, remarkInDiff, remarkUnderCursor, remarkToTakeOn, remarkHere, threadHere, threadAtStop, threadAtRow, openCommentRows, filesWithComments, answerCount, PANEL_SECTIONS, answersIn, newerOf, spokeLast, SECTION_OF, sectionOf, sentEntry, remarkRows, panelEntries, panelEntry, threadChosen, spokenSince, hunkStarts, openingRow, changeAround, nextUnreviewed, reviewedCount, fileOrder, filePlace, readingOrder, placeIn, layerFile, layerAfter, selectionRange;
|
|
13691
|
+
})), HOLDS, chosenNow, withChosen, preferenceRows, nothingReviewed, initialState, TREE_MAX, TREE_ROOMY, TREE_WIDE, TREE_MIN, TREE_SHARE, DIFF_MIN, DIFF_ROOMY, bodyRoom, treeWidth, tooSmall, reviewWidth, panelFits, panelShown, onLayers, selectedLayer, proseFor, kept, layerHolds, layerFiles, layerHolding, layerOpen, chunked, packed, shortened, wordWrapped, wrapped, clip, TITLE_ROWS, titleRows, shortDir, fileRow$1, shownFiles, dirOf, fileRows, layerRead, layerDone, countRow, NOTHING_LEFT, textRows, emptyRows, layerBody, holdsCursor, layerCard, layerRows, nearFirst, layerFitted, restingAt, railTop, PANE_CHROME$1, layerRoomIn, railWindow, selectedBranch, selectedPatch, pullHere, knownToHaveNoPull, treeOf, reviewedCountIn, CROWDED, treeRows, crowdedOf, foldersOfFile, isReviewed, treeStart, treeWindow, MINUTE, HOUR, DAY, sinceThen, threadStand, STAND_WEIGHT, louder, threadsOn, hiddenLines, rowsUnder, markedStands, carriesLine, selectedRows, snippetOf, selectedLineCount, lineOf, brokenAt, laidLine, laidDraft, COMPOSE_BOX, COMPOSE_MARGIN, COMPOSE_PAD, COMPOSE_LEAST, composeBox, composeRoom$1, composeTarget, remarkAnswering, answerTarget, replyTarget, threadReplying, VOICES, remarkQuote, threadQuote, pickedText, takenRows, selectedLines, shownMatches, matchHere, selectionReadout, CONTEXT_STEPS, wholeFileOff, contextToggled, layerContext, newLineAt, sourceLineAt, rowAtSourceLine, rowShowing, lineOnSide, needingRowsIn, commentRowsIn, threadsAtRow, remarkShown, remarksAtRow, remarkRowsIn, stopsIn, stopsAtRow, remarkAtStop, remarkAtRow, remarkInPanel, remarkInDiff, remarkUnderCursor, remarkToTakeOn, remarkHere, threadHere, threadAtStop, threadAtRow, openCommentRows, filesWithComments, answerCount, PANEL_SECTIONS, answersIn, newerOf, spokeLast, SECTION_OF, sectionOf, sentEntry, remarkRows, panelEntries, panelEntry, threadChosen, spokenSince, hunkStarts, openingRow, changeAround, nextUnreviewed, reviewedCount, fileOrder, filePlace, readingOrder, placeIn, layerFile, layerAfter, selectionRange;
|
|
13680
13692
|
var init_model = __esmMin((() => {
|
|
13681
13693
|
init_dist();
|
|
13682
13694
|
init_patch();
|
|
@@ -13690,6 +13702,7 @@ var init_model = __esmMin((() => {
|
|
|
13690
13702
|
hideReviewed: "hideReviewed",
|
|
13691
13703
|
hideSettled: "hideSettled",
|
|
13692
13704
|
newestFirst: "newestFirst",
|
|
13705
|
+
remarks: "remarksOn",
|
|
13693
13706
|
hold: "hold"
|
|
13694
13707
|
};
|
|
13695
13708
|
chosenNow = (state) => Object.fromEntries(Object.entries(HOLDS).map(([name, held]) => [name, state[held] === true]));
|
|
@@ -13722,6 +13735,7 @@ var init_model = __esmMin((() => {
|
|
|
13722
13735
|
hideSettled: false,
|
|
13723
13736
|
picked: void 0,
|
|
13724
13737
|
newestFirst: true,
|
|
13738
|
+
remarksOn: false,
|
|
13725
13739
|
hold: false,
|
|
13726
13740
|
tallest: 0,
|
|
13727
13741
|
scroll: -1,
|
|
@@ -14167,6 +14181,19 @@ var init_model = __esmMin((() => {
|
|
|
14167
14181
|
reviewer: "you",
|
|
14168
14182
|
agent: "the agent"
|
|
14169
14183
|
};
|
|
14184
|
+
remarkQuote = (state, room) => {
|
|
14185
|
+
const remark = remarkAnswering(state);
|
|
14186
|
+
if (remark === void 0) return [];
|
|
14187
|
+
const said = [{
|
|
14188
|
+
by: remark.by,
|
|
14189
|
+
body: remark.body
|
|
14190
|
+
}, ...remark.replies];
|
|
14191
|
+
const saidBy = (turn) => {
|
|
14192
|
+
const lines = wrapped(turn.body, Math.max(8, room - 4)).map((line) => ` ${line}`);
|
|
14193
|
+
return [` @${turn.by}`, ...lines];
|
|
14194
|
+
};
|
|
14195
|
+
return said.flatMap(saidBy);
|
|
14196
|
+
};
|
|
14170
14197
|
threadQuote = (state, room) => {
|
|
14171
14198
|
const thread = threadReplying(state);
|
|
14172
14199
|
if (thread === void 0) return [];
|
|
@@ -17200,7 +17227,7 @@ var init_diffview = __esmMin((() => {
|
|
|
17200
17227
|
}));
|
|
17201
17228
|
//#endregion
|
|
17202
17229
|
//#region src/tui/render.ts
|
|
17203
|
-
var ROW_HEIGHT, COMPOSE_WIDTH, GUTTER_X, CHIP_GAP, MODAL_ROOM, COMPOSE_CHROME, COMPOSE_ACTION_ROWS, reportActions, actionsText, SNIPPET_LINES, PALETTE_KEY, PALETTE_TITLE, PALETTE_GAP, PALETTE_CHROME, PENDING_CHROME, keysTitle, PALETTE_WIDTH, PANEL_SHARE, PANEL_MAX, PANEL_FLOOR, PANEL_FOOT, PANEL_QUARTER, PANEL_FIFTH, PANE_CHROME, PANE_EDGES, PANE_INSET, DIFF_FLOOR, COMPOSE_EDGE, CRAMPED, CRAMPED_ROWS, DIFF_CHROME_MOST, BRANCH_WIDTH, BRANCH_NAME_MIN, BRANCH_FIXED, STATE_MIN, EMPTY_LIST, MODAL_MARGIN, shareOf, homeWidth, longestName, longestState, keysOf, commandRow, modalWidth, panelWidth, panelTop, panelRows, composeRoom, laidOut$1, STICKY_MAX, pickPaint, PLAIN_PICKED, PICKED, PLAIN_CURSOR, UNDER_CURSOR, GAP_PAINT, frameRoot, crampedBar, bar, makeList, makeDiffPane, makePanel, makeListParts, makeListText, makeGutter, makeScroller, makeScrim, makeScroll, makePalette, asking, makePaletteParts, makeChoices, LIST_LEAD, windowed, listText, SHEET_GAP, sheetRow, groupedBy, sheetBlock, splitInTwo, sheetPaint, sheetDeep, sheetText, SETTING_LEAD, settingsText, stack, makeBody, makeHome, makeModals, makeSettingsParts, makeKeysParts, makeFoundParts, FONTS, logoFont, makeLanding, makeLogo, MAC_KEYS, makeComposeParts, makeCompose, stillThere, quotedFor, clipHead, clipMiddle, clipPath, INDENT_MAX, treeLabel, waitingLabel, inRange, notesOf, remarksOf, notesFor, paired, chipWidth, WAYS_OUT, keptWithin, CHIP_CHUNKS, shortPath, HOME_PATH_MIN, HOME_PATH_CHROME, elide, SUMMARY_LINES, summaryLines, contextLabel, nameRoom, stateRoom, columns, FORGE_SILENT, unaskedForge, branchHeading, atHome, layersCell, baseLabel, stateCell, branchCells, placeLabel, headerParts, panLabel, HEADER_GAP, HEADER_PATH_MIN, headerRoom, headerFitted, fallbackScope, treeMarks, treeTail, treeLine, GUTTER, DIR_LEAD, TITLE_LEAD, FILE_LEAD, STALE_ROOM, STALE_ASKING, STALE_LONG, STALE_MIDDLE, STALE_SHORT, staleSaid, staleBanner, litRow, leftOver, titlePaint, titleMark, titleLook, fileMark, fileLook, layerLook, layerGutter, layerText, standingOnThread, standingOnRemark, standingOnDismissed, offeredIn, PANEL_TITLES, PANEL_ORDER, PANEL_LEAD, PANEL_EMPTY, restingOrHere, FOUND_LEAST, nothingYet, foundTitle, CHANGED_MARK, fileRow, blockOf, aroundRow, windowedBlocks, REMARK_MARK, remarkWhere, wherePart, panelFile, panelWhere, panelBody, panelMark, panelPair, panelSection, PULL_HINT, panelWindow, moreLine, panelText, Screen;
|
|
17230
|
+
var ROW_HEIGHT, COMPOSE_WIDTH, GUTTER_X, CHIP_GAP, MODAL_ROOM, COMPOSE_CHROME, COMPOSE_ACTION_ROWS, reportActions, SENDS, REPLIES, actionsText, SNIPPET_LINES, PALETTE_KEY, PALETTE_TITLE, PALETTE_GAP, PALETTE_CHROME, PENDING_CHROME, keysTitle, PALETTE_WIDTH, PANEL_SHARE, PANEL_MAX, PANEL_FLOOR, PANEL_FOOT, PANEL_QUARTER, PANEL_FIFTH, PANE_CHROME, PANE_EDGES, PANE_INSET, DIFF_FLOOR, COMPOSE_EDGE, CRAMPED, CRAMPED_ROWS, DIFF_CHROME_MOST, BRANCH_WIDTH, BRANCH_NAME_MIN, BRANCH_FIXED, STATE_MIN, EMPTY_LIST, MODAL_MARGIN, shareOf, homeWidth, longestName, longestState, keysOf, commandRow, modalWidth, panelWidth, panelTop, panelRows, composeRoom, laidOut$1, STICKY_MAX, pickPaint, PLAIN_PICKED, PICKED, PLAIN_CURSOR, UNDER_CURSOR, GAP_PAINT, frameRoot, crampedBar, bar, makeList, makeDiffPane, makePanel, makeListParts, makeListText, makeGutter, makeScroller, makeScrim, makeScroll, makePalette, asking, makePaletteParts, makeChoices, LIST_LEAD, windowed, listText, SHEET_GAP, sheetRow, groupedBy, sheetBlock, splitInTwo, sheetPaint, sheetDeep, sheetText, SETTING_LEAD, settingsText, stack, makeBody, makeHome, makeModals, makeSettingsParts, makeKeysParts, makeFoundParts, FONTS, logoFont, makeLanding, makeLogo, MAC_KEYS, makeComposeParts, makeCompose, stillThere, quotedFor, clipHead, clipMiddle, clipPath, INDENT_MAX, treeLabel, waitingLabel, inRange, notesOf, remarksOf, notesFor, paired, chipWidth, WAYS_OUT, keptWithin, CHIP_CHUNKS, shortPath, HOME_PATH_MIN, HOME_PATH_CHROME, elide, SUMMARY_LINES, summaryLines, contextLabel, nameRoom, stateRoom, columns, FORGE_SILENT, unaskedForge, branchHeading, atHome, layersCell, baseLabel, stateCell, branchCells, placeLabel, headerParts, panLabel, HEADER_GAP, HEADER_PATH_MIN, headerRoom, headerFitted, fallbackScope, treeMarks, treeTail, treeLine, GUTTER, DIR_LEAD, TITLE_LEAD, FILE_LEAD, STALE_ROOM, STALE_ASKING, STALE_LONG, STALE_MIDDLE, STALE_SHORT, staleSaid, staleBanner, litRow, leftOver, titlePaint, titleMark, titleLook, fileMark, fileLook, layerLook, layerGutter, layerText, standingOnThread, standingOnRemark, standingOnDismissed, offeredIn, PANEL_TITLES, PANEL_ORDER, PANEL_LEAD, PANEL_EMPTY, restingOrHere, FOUND_LEAST, nothingYet, foundTitle, CHANGED_MARK, fileRow, blockOf, aroundRow, windowedBlocks, REMARK_MARK, remarkWhere, wherePart, panelFile, panelWhere, panelBody, panelMark, panelPair, panelSection, PULL_HINT, panelWindow, moreLine, panelText, Screen;
|
|
17204
17231
|
var init_render = __esmMin((() => {
|
|
17205
17232
|
init_dist();
|
|
17206
17233
|
init_command();
|
|
@@ -17220,7 +17247,9 @@ var init_render = __esmMin((() => {
|
|
|
17220
17247
|
COMPOSE_CHROME = 3;
|
|
17221
17248
|
COMPOSE_ACTION_ROWS = 2;
|
|
17222
17249
|
reportActions = (full) => t`${fg(palette.accent)("esc")} ${fg(palette.muted)("cancel")} ${fg(palette.accent)("^t")} ${fg(palette.muted)(full ? "sending everything" : "sending the least")} ${fg(palette.accent)("^s")} ${fg(palette.muted)("copy and save")}`;
|
|
17223
|
-
|
|
17250
|
+
SENDS = "send it";
|
|
17251
|
+
REPLIES = "reply on the pull request";
|
|
17252
|
+
actionsText = (said) => t`${fg(palette.accent)("esc")} ${fg(palette.muted)("cancel")} ${fg(palette.accent)("^s")} ${fg(palette.muted)(said)}`;
|
|
17224
17253
|
SNIPPET_LINES = 4;
|
|
17225
17254
|
PALETTE_KEY = 11;
|
|
17226
17255
|
PALETTE_TITLE = 60;
|
|
@@ -17772,6 +17801,8 @@ var init_render = __esmMin((() => {
|
|
|
17772
17801
|
});
|
|
17773
17802
|
stillThere = (sent) => sent.filter((one) => one.removed !== true);
|
|
17774
17803
|
quotedFor = (state, shownLines, room) => {
|
|
17804
|
+
const answering = remarkQuote(state, room);
|
|
17805
|
+
if (answering.length > 0) return answering.slice(0, shownLines * 2).map((line) => clip(line, room));
|
|
17775
17806
|
const said = threadQuote(state, room);
|
|
17776
17807
|
if (said.length > 0) return said.slice(0, shownLines * 2).map((line) => clip(line, room));
|
|
17777
17808
|
const snippet = snippetOf(state, shownLines);
|
|
@@ -18535,13 +18566,18 @@ var init_render = __esmMin((() => {
|
|
|
18535
18566
|
const readout = selectionReadout(state);
|
|
18536
18567
|
this.lead = readout.length === 0 ? 0 : readout.length + 3;
|
|
18537
18568
|
const lead = readout.length === 0 ? [] : [fg(palette.muted)(`${readout} `)];
|
|
18538
|
-
const
|
|
18539
|
-
|
|
18569
|
+
const held = [{
|
|
18570
|
+
said: state.waiting,
|
|
18571
|
+
colour: palette.accent
|
|
18572
|
+
}, {
|
|
18573
|
+
said: state.notice,
|
|
18574
|
+
colour: palette.attention
|
|
18575
|
+
}].filter((one) => one.said.length > 0);
|
|
18576
|
+
const tail = held.map((one) => ` ${one.said}`).join("");
|
|
18540
18577
|
const width = this.footer.width > 0 ? this.footer.width : this.renderer.width;
|
|
18541
18578
|
const room = Math.max(0, width - this.lead - tail.length);
|
|
18542
18579
|
const chips = keptWithin(this.chipRow().chunks, room);
|
|
18543
|
-
const
|
|
18544
|
-
const notice = tail.length === 0 ? [] : [fg(colour)(tail)];
|
|
18580
|
+
const notice = held.map((one) => fg(one.colour)(` ${one.said}`));
|
|
18545
18581
|
return new StyledText([
|
|
18546
18582
|
...lead,
|
|
18547
18583
|
...chips,
|
|
@@ -18881,7 +18917,7 @@ var init_render = __esmMin((() => {
|
|
|
18881
18917
|
this.composeQuoted.height = quoted.length + 1;
|
|
18882
18918
|
const spare = this.renderer.height - quoted.length - 1 - COMPOSE_ACTION_ROWS - COMPOSE_CHROME - COMPOSE_EDGE;
|
|
18883
18919
|
const written = this.fitBody(state, room.text, Math.max(1, spare));
|
|
18884
|
-
this.composeActions.content = actionsText();
|
|
18920
|
+
this.composeActions.content = actionsText(state.answerTo === void 0 ? SENDS : REPLIES);
|
|
18885
18921
|
const height = quoted.length + 1 + written + COMPOSE_ACTION_ROWS + COMPOSE_CHROME;
|
|
18886
18922
|
this.compose.height = height;
|
|
18887
18923
|
this.compose.width = room.box;
|
|
@@ -19034,7 +19070,7 @@ var init_upgrade = __esmMin((() => {
|
|
|
19034
19070
|
}));
|
|
19035
19071
|
//#endregion
|
|
19036
19072
|
//#region src/tui/app.ts
|
|
19037
|
-
var LEAVING_MS, LOOK_MS, AGE_TICK_MS, LEAVING_SAID, NOTHING_WRITTEN, countOf, leavingSaid, LAYERS_ASK_LEAD, layersAsk, askedFor, alongFrom, NOTICE_MS, KEY_HISTORY, DRAIN_PASSES, TRAIL_HISTORY, clockOf, momentOf, noticeOf, COPIERS, wayland, seedFor, handOver, throughMultiplexer, copyToClipboard, lineUnder, asKey, openedPull, LISTENS, WRITES, OVER, overReview, writesInto, listens, LETTER, laidOut, ARROWS, SHIFTED, keyName, App, sentAway, turnedOver, settledPath, restsWhereItLanded, lonelyGaps, chosenIn, settingsHeld, firstBranches, missing, openingOn, launch, told, untilDestroyed, runOn, runTui;
|
|
19073
|
+
var LEAVING_MS, LOOK_MS, AGE_TICK_MS, LEAVING_SAID, NOTHING_WRITTEN, READING_PULL, FORGE_QUIET, countOf, leavingSaid, LAYERS_ASK_LEAD, layersAsk, askedFor, alongFrom, NOTICE_MS, KEY_HISTORY, DRAIN_PASSES, TRAIL_HISTORY, clockOf, momentOf, noticeOf, COPIERS, wayland, seedFor, handOver, throughMultiplexer, copyToClipboard, lineUnder, asKey, openedPull, LISTENS, WRITES, OVER, overReview, writesInto, listens, LETTER, laidOut, ARROWS, SHIFTED, keyName, App, sentAway, turnedOver, settledPath, restsWhereItLanded, lonelyGaps, chosenIn, settingsHeld, firstBranches, missing, openingOn, launch, told, untilDestroyed, runOn, runTui;
|
|
19038
19074
|
var init_app = __esmMin((() => {
|
|
19039
19075
|
init_dist();
|
|
19040
19076
|
init_report();
|
|
@@ -19057,6 +19093,8 @@ var init_app = __esmMin((() => {
|
|
|
19057
19093
|
AGE_TICK_MS = 3e4;
|
|
19058
19094
|
LEAVING_SAID = "press ctrl+c again to leave";
|
|
19059
19095
|
NOTHING_WRITTEN = "nothing written yet";
|
|
19096
|
+
READING_PULL = "reading the pull request";
|
|
19097
|
+
FORGE_QUIET = "the forge did not answer, so no remarks are shown";
|
|
19060
19098
|
countOf = (many, one) => `${many} ${one}${many === 1 ? "" : "s"}`;
|
|
19061
19099
|
leavingSaid = (state) => state.held.length === 0 ? LEAVING_SAID : `${countOf(state.held.length, "comment")} never sent — press ctrl+c again to leave without them`;
|
|
19062
19100
|
LAYERS_ASK_LEAD = "About this branch, not about this line.";
|
|
@@ -19229,6 +19267,7 @@ var init_app = __esmMin((() => {
|
|
|
19229
19267
|
listening;
|
|
19230
19268
|
lighting;
|
|
19231
19269
|
sourcing;
|
|
19270
|
+
fetching;
|
|
19232
19271
|
constructor(options) {
|
|
19233
19272
|
this.renderer = options.renderer;
|
|
19234
19273
|
this.repo = options.repo;
|
|
@@ -19389,7 +19428,11 @@ var init_app = __esmMin((() => {
|
|
|
19389
19428
|
}
|
|
19390
19429
|
settled() {
|
|
19391
19430
|
if (this.consuming === void 0) return Promise.resolve();
|
|
19392
|
-
return runPromise(andThen(andThen(this.drained(), suspend(() => this.stillSourcing())), suspend(() => this.stillLighting())));
|
|
19431
|
+
return runPromise(andThen(andThen(andThen(this.drained(), suspend(() => this.stillSourcing())), suspend(() => this.stillFetching())), suspend(() => this.stillLighting())));
|
|
19432
|
+
}
|
|
19433
|
+
stillFetching() {
|
|
19434
|
+
const fiber = this.fetching;
|
|
19435
|
+
return fiber === void 0 ? void_ : asVoid(await_(fiber));
|
|
19393
19436
|
}
|
|
19394
19437
|
stillSourcing() {
|
|
19395
19438
|
const fiber = this.sourcing;
|
|
@@ -19696,12 +19739,40 @@ var init_app = __esmMin((() => {
|
|
|
19696
19739
|
progressIn(reading),
|
|
19697
19740
|
layersIn(reading),
|
|
19698
19741
|
sentIn(reading),
|
|
19699
|
-
|
|
19742
|
+
this.state.remarksOn ? remarksHeldIn(reading) : succeed$1([])
|
|
19700
19743
|
], { concurrency: "unbounded" });
|
|
19701
19744
|
const opened = withVouched(withPatches(this.state, reading.patches), progress.vouched);
|
|
19702
|
-
|
|
19745
|
+
return withRemarks(withLayers(withSent(opened, sent), layers), remarks);
|
|
19746
|
+
});
|
|
19747
|
+
}
|
|
19748
|
+
remarksHeld(reading) {
|
|
19749
|
+
return this.state.remarksOn ? remarksHeldIn(reading) : succeed$1([]);
|
|
19750
|
+
}
|
|
19751
|
+
fetchRemarks() {
|
|
19752
|
+
return gen({ self: this }, function* () {
|
|
19753
|
+
this.stopFetching();
|
|
19754
|
+
if (!this.state.remarksOn || this.reading === void 0) return;
|
|
19755
|
+
this.fetching = yield* forkDetach(this.readRemarks(this.reading));
|
|
19756
|
+
});
|
|
19757
|
+
}
|
|
19758
|
+
stopFetching() {
|
|
19759
|
+
const fiber = this.fetching;
|
|
19760
|
+
this.fetching = void 0;
|
|
19761
|
+
if (fiber !== void 0) runFork(interrupt(fiber));
|
|
19762
|
+
}
|
|
19763
|
+
readRemarks(reading) {
|
|
19764
|
+
return gen({ self: this }, function* () {
|
|
19765
|
+
const said = this.state.waiting;
|
|
19766
|
+
this.commit(withWaiting(this.state, READING_PULL));
|
|
19767
|
+
const found = yield* result(remarksIn(this.repo, reading));
|
|
19768
|
+
if (this.reading !== reading) return;
|
|
19769
|
+
const rested = withWaiting(this.state, said);
|
|
19703
19770
|
const hasPull = (this.state.pulls[reading.worktree.branch] ?? "").length > 0;
|
|
19704
|
-
|
|
19771
|
+
if (isFailure(found)) {
|
|
19772
|
+
this.commit(hasPull ? withNoticeHere(rested, FORGE_QUIET) : rested);
|
|
19773
|
+
return;
|
|
19774
|
+
}
|
|
19775
|
+
this.commit(withRemarks(rested, getOrElse(found, () => this.state.remarks)));
|
|
19705
19776
|
});
|
|
19706
19777
|
}
|
|
19707
19778
|
openBranch() {
|
|
@@ -19709,6 +19780,7 @@ var init_app = __esmMin((() => {
|
|
|
19709
19780
|
const branch = selectedBranch(this.state);
|
|
19710
19781
|
if (branch === void 0) return;
|
|
19711
19782
|
this.commit(yield* this.readBranch(branch.branch));
|
|
19783
|
+
yield* this.fetchRemarks();
|
|
19712
19784
|
yield* this.loadSource();
|
|
19713
19785
|
});
|
|
19714
19786
|
}
|
|
@@ -20060,7 +20132,7 @@ var init_app = __esmMin((() => {
|
|
|
20060
20132
|
return gen({ self: this }, function* () {
|
|
20061
20133
|
const reading = this.reading;
|
|
20062
20134
|
if (reading === void 0) return;
|
|
20063
|
-
const [remarks, sent] = yield* all([
|
|
20135
|
+
const [remarks, sent] = yield* all([this.remarksHeld(reading), sentIn(reading)], { concurrency: "unbounded" });
|
|
20064
20136
|
const held = this.staying(withRemarks(withSent(this.state, sent), remarks), this.state.panelIndex);
|
|
20065
20137
|
this.commit(withNoticeHere(held, said));
|
|
20066
20138
|
});
|
|
@@ -20098,7 +20170,7 @@ var init_app = __esmMin((() => {
|
|
|
20098
20170
|
};
|
|
20099
20171
|
const said = back ? "restored" : "removed, it is under Removed in the review";
|
|
20100
20172
|
const held = this.reading;
|
|
20101
|
-
const remarks = held === void 0 ? this.state.remarks : yield*
|
|
20173
|
+
const remarks = held === void 0 ? this.state.remarks : yield* this.remarksHeld(held);
|
|
20102
20174
|
this.commit(withNotice(this.staying(withRemarks(withSent(kept, sent), remarks), was), said));
|
|
20103
20175
|
});
|
|
20104
20176
|
}
|
|
@@ -20139,6 +20211,7 @@ var init_app = __esmMin((() => {
|
|
|
20139
20211
|
const read = yield* this.readBranch(branch.branch);
|
|
20140
20212
|
const held = restoredTo(read, path, line, offset);
|
|
20141
20213
|
this.commit(withWaiting(withNotice(held, "read the branch again"), ""));
|
|
20214
|
+
yield* this.fetchRemarks();
|
|
20142
20215
|
yield* this.loadSource();
|
|
20143
20216
|
});
|
|
20144
20217
|
}
|
|
@@ -20342,6 +20415,7 @@ var init_app = __esmMin((() => {
|
|
|
20342
20415
|
this.stopTicking();
|
|
20343
20416
|
this.stopLighting();
|
|
20344
20417
|
this.stopSourcing();
|
|
20418
|
+
this.stopFetching();
|
|
20345
20419
|
this.stopPainting();
|
|
20346
20420
|
this.stopConsuming();
|
|
20347
20421
|
getTreeSitterClient().destroy();
|
|
@@ -20589,6 +20663,7 @@ var init_app = __esmMin((() => {
|
|
|
20589
20663
|
hideReviewed: state.hideReviewed,
|
|
20590
20664
|
hideSettled: state.hideSettled,
|
|
20591
20665
|
newestFirst: state.newestFirst,
|
|
20666
|
+
remarks: state.remarksOn,
|
|
20592
20667
|
hold: state.hold
|
|
20593
20668
|
});
|
|
20594
20669
|
settingsHeld = gen(function* () {
|
|
@@ -20602,6 +20677,7 @@ var init_app = __esmMin((() => {
|
|
|
20602
20677
|
hideReviewed: kept["hideReviewed"] === true,
|
|
20603
20678
|
hideSettled: kept["hideSettled"] === true,
|
|
20604
20679
|
newestFirst: kept["newestFirst"] === true,
|
|
20680
|
+
remarksOn: kept["remarks"] === true,
|
|
20605
20681
|
hold: kept["hold"] === true
|
|
20606
20682
|
};
|
|
20607
20683
|
});
|
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.150",
|
|
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": {
|