@eliya-oss/agent-diff 0.1.0-alpha.203 → 0.1.0-alpha.204
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 +20 -0
- package/dist/main.js +115 -42
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.204
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(agent commands): `--body -` reads the text from stdin, as `layers set --json -` already does, so an answer piped in from a heredoc reaches the reviewer whole. Blank text on stdin is refused.
|
|
8
|
+
|
|
9
|
+
<details><summary>What was wrong</summary>
|
|
10
|
+
|
|
11
|
+
An agent that answered with `--body -` and the text on stdin stored a lone `-` as its answer, which the reviewer saw as an empty reply, and the text it meant to send was lost. Every command that takes `--body` now reads stdin for `-`: comment send, reply, answer and doing, draft add and edit, remark accept and reply.
|
|
12
|
+
|
|
13
|
+
</details>
|
|
14
|
+
|
|
15
|
+
- fix(marks): a layer marked read stays read when the agent changes the file only in another layer's lines, and marking that layer again unmarks it.
|
|
16
|
+
|
|
17
|
+
<details><summary>What was wrong</summary>
|
|
18
|
+
|
|
19
|
+
A file two layers share was read one layer at a time. When the agent changed the file in one layer's lines, every layer of the file went back to unread, so a layer with nothing new in it asked to be read again and its Since review view had nothing to show. A file marked read whole already kept its untouched layers. And on a layer kept read that way, pressing mark recorded a new mark instead of taking the layer back out.
|
|
20
|
+
|
|
21
|
+
</details>
|
|
22
|
+
|
|
3
23
|
## 0.1.0-alpha.203
|
|
4
24
|
|
|
5
25
|
### 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.
|
|
10086
|
+
var version$1 = "0.1.0-alpha.204";
|
|
10087
10087
|
//#endregion
|
|
10088
10088
|
//#region src/cli/error.ts
|
|
10089
10089
|
var UnknownCommand, MissingOption, UnknownField, UnknownOption, BadOption, RegistryUnanswered, NotServed, BadRequest;
|
|
@@ -10378,7 +10378,7 @@ var init_catalog = __esmMin((() => {
|
|
|
10378
10378
|
name: "body",
|
|
10379
10379
|
required: true,
|
|
10380
10380
|
value: "text",
|
|
10381
|
-
about: "What to tell the agent"
|
|
10381
|
+
about: "What to tell the agent, or - to read it from stdin"
|
|
10382
10382
|
},
|
|
10383
10383
|
{
|
|
10384
10384
|
name: "side",
|
|
@@ -10602,7 +10602,7 @@ var init_catalog = __esmMin((() => {
|
|
|
10602
10602
|
name: "body",
|
|
10603
10603
|
required: true,
|
|
10604
10604
|
value: "text",
|
|
10605
|
-
about: "What to tell the agent"
|
|
10605
|
+
about: "What to tell the agent, or - to read it from stdin"
|
|
10606
10606
|
}
|
|
10607
10607
|
],
|
|
10608
10608
|
dataKey: "batch",
|
|
@@ -10650,7 +10650,7 @@ var init_catalog = __esmMin((() => {
|
|
|
10650
10650
|
name: "body",
|
|
10651
10651
|
required: true,
|
|
10652
10652
|
value: "text",
|
|
10653
|
-
about: "What was done, or what is being asked"
|
|
10653
|
+
about: "What was done, or what is being asked, or - to read it from stdin"
|
|
10654
10654
|
},
|
|
10655
10655
|
{
|
|
10656
10656
|
name: "question",
|
|
@@ -10765,7 +10765,7 @@ var init_catalog = __esmMin((() => {
|
|
|
10765
10765
|
name: "body",
|
|
10766
10766
|
required: true,
|
|
10767
10767
|
value: "text",
|
|
10768
|
-
about: "What it should say instead"
|
|
10768
|
+
about: "What it should say instead, or - to read it from stdin"
|
|
10769
10769
|
}
|
|
10770
10770
|
],
|
|
10771
10771
|
dataKey: "draft",
|
|
@@ -10834,7 +10834,7 @@ var init_catalog = __esmMin((() => {
|
|
|
10834
10834
|
name: "body",
|
|
10835
10835
|
required: false,
|
|
10836
10836
|
value: "text",
|
|
10837
|
-
about: "What to tell the agent, instead of the remark's own words"
|
|
10837
|
+
about: "What to tell the agent, instead of the remark's own words, or - to read it from stdin"
|
|
10838
10838
|
}
|
|
10839
10839
|
],
|
|
10840
10840
|
dataKey: "accepted",
|
|
@@ -10858,7 +10858,7 @@ var init_catalog = __esmMin((() => {
|
|
|
10858
10858
|
name: "body",
|
|
10859
10859
|
required: true,
|
|
10860
10860
|
value: "text",
|
|
10861
|
-
about: "What to say in the thread"
|
|
10861
|
+
about: "What to say in the thread, or - to read it from stdin"
|
|
10862
10862
|
}
|
|
10863
10863
|
],
|
|
10864
10864
|
dataKey: "answered",
|
|
@@ -11138,7 +11138,7 @@ var init_catalog = __esmMin((() => {
|
|
|
11138
11138
|
}));
|
|
11139
11139
|
//#endregion
|
|
11140
11140
|
//#region src/cli/parse.ts
|
|
11141
|
-
var FLAG, REPEATED, MANY, withValue, flagOn, tokenOn, optionsFrom, onlyKnown, oneOf, required, numeric, SPOT, spot, WHOLE, around$1, seconds, many, CHOICES_FEWEST, CHOICES_MOST, choices, oneLine;
|
|
11141
|
+
var FLAG, REPEATED, MANY, withValue, flagOn, tokenOn, optionsFrom, onlyKnown, oneOf, required, STDIN, text$1, numeric, SPOT, spot, WHOLE, around$1, seconds, many, CHOICES_FEWEST, CHOICES_MOST, choices, oneLine;
|
|
11142
11142
|
var init_parse$1 = __esmMin((() => {
|
|
11143
11143
|
init_dist();
|
|
11144
11144
|
init_catalog();
|
|
@@ -11216,6 +11216,16 @@ var init_parse$1 = __esmMin((() => {
|
|
|
11216
11216
|
onSome: succeed$1
|
|
11217
11217
|
});
|
|
11218
11218
|
});
|
|
11219
|
+
STDIN = "-";
|
|
11220
|
+
text$1 = fn("Cli.text")(function* (options, name) {
|
|
11221
|
+
const given = yield* required(options, name);
|
|
11222
|
+
const said = given === STDIN ? yield* promise(() => text(process.stdin)) : given;
|
|
11223
|
+
return yield* said.trim().length > 0 ? succeed$1(given === STDIN ? said.trimEnd() : said) : new BadOption({
|
|
11224
|
+
option: name,
|
|
11225
|
+
given,
|
|
11226
|
+
allowed: ["text, or - with the text on stdin"]
|
|
11227
|
+
});
|
|
11228
|
+
});
|
|
11219
11229
|
numeric = fn("Cli.numeric")(function* (options, name) {
|
|
11220
11230
|
const raw = yield* required(options, name);
|
|
11221
11231
|
const parsed = Number(raw);
|
|
@@ -11277,8 +11287,8 @@ var init_parse$1 = __esmMin((() => {
|
|
|
11277
11287
|
});
|
|
11278
11288
|
});
|
|
11279
11289
|
oneLine = fn("Cli.oneLine")(function* (options, name) {
|
|
11280
|
-
const said = (yield*
|
|
11281
|
-
return yield*
|
|
11290
|
+
const said = (yield* text$1(options, name)).trim();
|
|
11291
|
+
return yield* !said.includes("\n") ? succeed$1(said) : new BadOption({
|
|
11282
11292
|
option: name,
|
|
11283
11293
|
given: said,
|
|
11284
11294
|
allowed: ["one line of text, not empty"]
|
|
@@ -13935,12 +13945,12 @@ var init_layers$1 = __esmMin((() => {
|
|
|
13935
13945
|
}));
|
|
13936
13946
|
//#endregion
|
|
13937
13947
|
//#region src/review/placing.ts
|
|
13938
|
-
var keptOf, baseOf, nowOnNew, nowOnOld, writtenName, unplaced, rewordedAt, standing, searched, keyOf$3, pairOf, unique$1, nowFor, placedWithout, placedThrough, placedFrom, placeOne, nowsOf, writtenOf, pairsOf, diffsOf, placedAll, versionOf;
|
|
13948
|
+
var keptOf$1, baseOf, nowOnNew, nowOnOld, writtenName, unplaced, rewordedAt, standing, searched, keyOf$3, pairOf, unique$1, nowFor, placedWithout, placedThrough, placedFrom, placeOne, nowsOf, writtenOf, pairsOf, diffsOf, placedAll, versionOf;
|
|
13939
13949
|
var init_placing = __esmMin((() => {
|
|
13940
13950
|
init_dist();
|
|
13941
13951
|
init_patch();
|
|
13942
13952
|
init_git();
|
|
13943
|
-
keptOf = (found) => getOrElse(found, () => []);
|
|
13953
|
+
keptOf$1 = (found) => getOrElse(found, () => []);
|
|
13944
13954
|
baseOf = (worktree) => worktree.base.length > 0 ? worktree.base : "HEAD";
|
|
13945
13955
|
nowOnNew = fn("Review.Placing.nowOnNew")(function* (worktree, patch) {
|
|
13946
13956
|
const git = yield* Git;
|
|
@@ -13948,7 +13958,7 @@ var init_placing = __esmMin((() => {
|
|
|
13948
13958
|
version: none(),
|
|
13949
13959
|
lines: []
|
|
13950
13960
|
};
|
|
13951
|
-
const lines = keptOf(yield* git.source(worktree, patch.path));
|
|
13961
|
+
const lines = keptOf$1(yield* git.source(worktree, patch.path));
|
|
13952
13962
|
const [version] = yield* git.keep(worktree, [patch.path]);
|
|
13953
13963
|
return {
|
|
13954
13964
|
version: fromNullishOr(version),
|
|
@@ -13965,7 +13975,7 @@ var init_placing = __esmMin((() => {
|
|
|
13965
13975
|
const version = yield* git.kept(worktree, named);
|
|
13966
13976
|
return {
|
|
13967
13977
|
version,
|
|
13968
|
-
lines: isNone(version) ? [] : keptOf(yield* git.blob(worktree, patch.previousPath))
|
|
13978
|
+
lines: isNone(version) ? [] : keptOf$1(yield* git.blob(worktree, patch.previousPath))
|
|
13969
13979
|
};
|
|
13970
13980
|
});
|
|
13971
13981
|
writtenName = (anchor) => anchor.version ?? (anchor.side === "new" ? anchor.blob : "");
|
|
@@ -15466,7 +15476,7 @@ var init_remarks$1 = __esmMin((() => {
|
|
|
15466
15476
|
}));
|
|
15467
15477
|
//#endregion
|
|
15468
15478
|
//#region src/review/vouching.ts
|
|
15469
|
-
var pathOfMark, changedSince, readParts, restamped, now, keepMarked, fullBlob, blobIn, stateAfter, toggle, marksOf, newestFirst, speaking, contentNow, diffSince, placesIn, counted$1, nearestNew$1, touchedIn, touchedLines, holdsAny, layersTouched, untouchedParts, partsStillRead, stillRead, reportSince, isGone, goneSince, lapsedIn, sinceReview, progress, unchanged, markOf, since;
|
|
15479
|
+
var pathOfMark, changedSince, readParts, restamped, now, keepMarked, fullBlob, blobIn, stateAfter, toggle, marksOf, newestFirst, speaking, contentNow, diffSince, placesIn, counted$1, nearestNew$1, touchedIn, touchedLines, holdsAny, layersTouched, untouchedParts, partsStillRead, lapsedMarks, keptOf, stillRead, reportSince, isGone, goneSince, lapsedIn, sinceReview, progress, unchanged, markOf, since;
|
|
15470
15480
|
var init_vouching$1 = __esmMin((() => {
|
|
15471
15481
|
init_dist();
|
|
15472
15482
|
init_patch();
|
|
@@ -15617,10 +15627,30 @@ var init_vouching$1 = __esmMin((() => {
|
|
|
15617
15627
|
const since = yield* diffSince(worktree, patch.path, kept.value, 3);
|
|
15618
15628
|
return untouchedParts(spans, patch.path, layersTouched(spans, patch.path, since));
|
|
15619
15629
|
});
|
|
15620
|
-
|
|
15630
|
+
lapsedMarks = (patches, marks) => {
|
|
15631
|
+
const grouped = /* @__PURE__ */ new Map();
|
|
15632
|
+
for (const [key, blob] of Object.entries(marks)) {
|
|
15633
|
+
const patch = patches.find((one) => one.path === pathOfMark(key));
|
|
15634
|
+
if (patch === void 0 || sameBlob(blob, patch.blob)) continue;
|
|
15635
|
+
const held = grouped.get(`${patch.path}|${blob}`);
|
|
15636
|
+
grouped.set(`${patch.path}|${blob}`, {
|
|
15637
|
+
patch,
|
|
15638
|
+
blob,
|
|
15639
|
+
keys: [...held?.keys ?? [], key]
|
|
15640
|
+
});
|
|
15641
|
+
}
|
|
15642
|
+
return [...grouped.values()];
|
|
15643
|
+
};
|
|
15644
|
+
keptOf = (lapsed, untouched) => lapsed.keys.includes(lapsed.patch.path) ? untouched : untouched.filter((part) => lapsed.keys.includes(part));
|
|
15645
|
+
stillRead = fn("Review.Vouch.stillRead")(function* (reading, marks, spans) {
|
|
15621
15646
|
if (spans.length === 0) return [];
|
|
15622
|
-
const lapsed = reading.patches
|
|
15623
|
-
|
|
15647
|
+
const lapsed = lapsedMarks(reading.patches, {
|
|
15648
|
+
...marks.vouches,
|
|
15649
|
+
...marks.parts
|
|
15650
|
+
});
|
|
15651
|
+
const keptIn = (one) => map$1(partsStillRead(reading.worktree, one.patch, one.blob, spans), (untouched) => keptOf(one, untouched));
|
|
15652
|
+
const found = yield* forEach(lapsed, keptIn, { concurrency: 8 });
|
|
15653
|
+
return [...new Set(found.flat())];
|
|
15624
15654
|
});
|
|
15625
15655
|
reportSince = fn("Review.Vouch.reportSince")(function* (worktree, asked, spans) {
|
|
15626
15656
|
const git = yield* Git;
|
|
@@ -15679,7 +15709,7 @@ var init_vouching$1 = __esmMin((() => {
|
|
|
15679
15709
|
const changed = changedSince([current.vouches, current.parts], files);
|
|
15680
15710
|
return {
|
|
15681
15711
|
vouched: files.filter((file) => isVouched(current.vouches, file.path, file.blob)).map((f) => f.path),
|
|
15682
|
-
parts: [...readParts(current.parts, files), ...yield* stillRead(reading, current
|
|
15712
|
+
parts: [...readParts(current.parts, files), ...yield* stillRead(reading, current, spans)],
|
|
15683
15713
|
changed,
|
|
15684
15714
|
since: yield* sinceReview(reading, current, changed, spans),
|
|
15685
15715
|
total: reading.patches.length
|
|
@@ -15859,7 +15889,7 @@ var init_preferences = __esmMin((() => {
|
|
|
15859
15889
|
}));
|
|
15860
15890
|
//#endregion
|
|
15861
15891
|
//#region src/review/layers.ts
|
|
15862
|
-
var STALE_ADVICE, unique, spansOfLayer, tidyPath, spanFault, blockFault, codeBlockOf, tidyBlock, blocksOf, layerFault, layerOf, parsed, readLayers, fromStored, toStored, partIn, reportedLayers, reportOf, storedLayers, set, readInLayer, withRead, coversThread, readsFile, lastHolding, layersHolding$1, loudest, partWithThreads, withThreads, readReport, view, show$1, placeThreads, spansIn, layersAt, taggedRow, nearestNew, lineNow, taggedHunk, taggedFile, tagSince, quietRow, quietFile, tagRows, read, partsOfFile, vouchPart, askingFor, openAskOf, askIn, seenOf, ask, claims, vouchIn;
|
|
15892
|
+
var STALE_ADVICE, unique, spansOfLayer, tidyPath, spanFault, blockFault, codeBlockOf, tidyBlock, blocksOf, layerFault, layerOf, parsed, readLayers, fromStored, toStored, partIn, reportedLayers, reportOf, storedLayers, set, readInLayer, withRead, coversThread, readsFile, lastHolding, layersHolding$1, loudest, partWithThreads, withThreads, readReport, view, show$1, placeThreads, spansIn, layersAt, taggedRow, nearestNew, lineNow, taggedHunk, taggedFile, tagSince, quietRow, quietFile, tagRows, read, partsOfFile, vouchPart, carriedStamps, unmarkedPart, markedPart, askingFor, openAskOf, askIn, seenOf, ask, claims, vouchIn;
|
|
15863
15893
|
var init_layers = __esmMin((() => {
|
|
15864
15894
|
init_dist();
|
|
15865
15895
|
init_layers$1();
|
|
@@ -16105,7 +16135,7 @@ var init_layers = __esmMin((() => {
|
|
|
16105
16135
|
return some(withRead(report, {
|
|
16106
16136
|
patches: reading.patches,
|
|
16107
16137
|
vouches: current.vouches,
|
|
16108
|
-
parts: [...readParts(current.parts, files), ...yield* stillRead(reading, current
|
|
16138
|
+
parts: [...readParts(current.parts, files), ...yield* stillRead(reading, current, spans)]
|
|
16109
16139
|
}));
|
|
16110
16140
|
});
|
|
16111
16141
|
view = fn("Review.Layers.view")(function* (reading) {
|
|
@@ -16214,32 +16244,75 @@ var init_layers = __esmMin((() => {
|
|
|
16214
16244
|
});
|
|
16215
16245
|
const blob = yield* fullBlob(reading.worktree, asked);
|
|
16216
16246
|
const held = yield* read(reading);
|
|
16217
|
-
const
|
|
16247
|
+
const spans = held.layers.map((layer) => layer.spans);
|
|
16218
16248
|
const current = yield* store.state(reading.worktree.path);
|
|
16219
|
-
const
|
|
16220
|
-
const
|
|
16249
|
+
const readBefore = yield* stillRead(reading, current, spans);
|
|
16250
|
+
const next = readBefore.includes(part) && !isPartVouched(current.parts, part, blob) ? unmarkedPart(current, file, part, readBefore) : yield* markedPart(reading, current, {
|
|
16251
|
+
file,
|
|
16252
|
+
part,
|
|
16253
|
+
blob,
|
|
16254
|
+
wanted: partsOfFile(held.layers, file),
|
|
16255
|
+
spans
|
|
16256
|
+
});
|
|
16221
16257
|
yield* store.changeState(reading.worktree.path, (was) => ({
|
|
16222
16258
|
...was,
|
|
16223
|
-
parts,
|
|
16224
|
-
vouches,
|
|
16225
|
-
vouchedAt:
|
|
16226
|
-
...was.
|
|
16227
|
-
|
|
16228
|
-
|
|
16229
|
-
|
|
16230
|
-
|
|
16231
|
-
|
|
16259
|
+
parts: next.parts,
|
|
16260
|
+
vouches: next.vouches,
|
|
16261
|
+
vouchedAt: {
|
|
16262
|
+
...restamped(was.vouchedAt, {
|
|
16263
|
+
...was.vouches,
|
|
16264
|
+
...was.parts
|
|
16265
|
+
}, {
|
|
16266
|
+
...next.vouches,
|
|
16267
|
+
...next.parts
|
|
16268
|
+
}, at),
|
|
16269
|
+
...carriedStamps(next.carried, was.vouchedAt[file] ?? at)
|
|
16270
|
+
}
|
|
16232
16271
|
}));
|
|
16233
16272
|
const files = reading.patches.map((one) => ({
|
|
16234
16273
|
path: one.path,
|
|
16235
16274
|
blob: one.blob
|
|
16236
16275
|
}));
|
|
16276
|
+
const readAfter = yield* stillRead(reading, next, spans);
|
|
16237
16277
|
return {
|
|
16238
|
-
vouched: files.filter((one) => isVouched(vouches, one.path, one.blob)).map((one) => one.path),
|
|
16239
|
-
parts: readParts(parts, files),
|
|
16278
|
+
vouched: files.filter((one) => isVouched(next.vouches, one.path, one.blob)).map((one) => one.path),
|
|
16279
|
+
parts: [.../* @__PURE__ */ new Set([...readParts(next.parts, files), ...readAfter])],
|
|
16240
16280
|
total: reading.patches.length
|
|
16241
16281
|
};
|
|
16242
16282
|
});
|
|
16283
|
+
carriedStamps = (carried, at) => Object.fromEntries(carried.map((key) => [key, at]));
|
|
16284
|
+
unmarkedPart = (current, file, part, readBefore) => {
|
|
16285
|
+
const { [part]: _unmarked, ...parts } = current.parts;
|
|
16286
|
+
const lapsed = current.vouches[file];
|
|
16287
|
+
if (lapsed === void 0) return {
|
|
16288
|
+
vouches: current.vouches,
|
|
16289
|
+
parts,
|
|
16290
|
+
carried: []
|
|
16291
|
+
};
|
|
16292
|
+
const { [file]: _whole, ...vouches } = current.vouches;
|
|
16293
|
+
const carried = readBefore.filter((one) => one !== part && one.startsWith(`${file}@`) && !Object.hasOwn(parts, one));
|
|
16294
|
+
return {
|
|
16295
|
+
vouches,
|
|
16296
|
+
parts: {
|
|
16297
|
+
...parts,
|
|
16298
|
+
...Object.fromEntries(carried.map((one) => [one, lapsed]))
|
|
16299
|
+
},
|
|
16300
|
+
carried
|
|
16301
|
+
};
|
|
16302
|
+
};
|
|
16303
|
+
markedPart = fn("Review.Layers.markedPart")(function* (reading, current, pressed) {
|
|
16304
|
+
const { file, blob } = pressed;
|
|
16305
|
+
const parts = vouchPart$1(current.parts, pressed.part, blob);
|
|
16306
|
+
const kept = yield* stillRead(reading, {
|
|
16307
|
+
vouches: current.vouches,
|
|
16308
|
+
parts
|
|
16309
|
+
}, pressed.spans);
|
|
16310
|
+
return {
|
|
16311
|
+
vouches: (pressed.wanted.length > 0 && pressed.wanted.every((one) => isPartVouched(parts, one, blob) || kept.includes(one))) === isVouched(current.vouches, file, blob) ? current.vouches : vouch$1(current.vouches, file, blob),
|
|
16312
|
+
parts,
|
|
16313
|
+
carried: []
|
|
16314
|
+
};
|
|
16315
|
+
});
|
|
16243
16316
|
askingFor = (told) => {
|
|
16244
16317
|
if (told.count === 0) return `${ASK_LEAD} Please write a reading order for it with \`adiff layers set\`, so the diff can be read in the order the change was made rather than by filename.`;
|
|
16245
16318
|
if (told.stale) return `${ASK_LEAD} The reading order on it describes an older commit — please read the diff again and write a new one with \`adiff layers set\`.`;
|
|
@@ -26525,7 +26598,7 @@ const commentSend = fn("Main.commentSend")(function* (options) {
|
|
|
26525
26598
|
const worktree = yield* worktreeIn(options);
|
|
26526
26599
|
const batch = yield* submit(worktree, {
|
|
26527
26600
|
...yield* rangeIn(options, worktree),
|
|
26528
|
-
body: yield*
|
|
26601
|
+
body: yield* text$1(options, "body"),
|
|
26529
26602
|
id: options["id"] ?? randomUUID(),
|
|
26530
26603
|
at: stamp(options)
|
|
26531
26604
|
});
|
|
@@ -26539,7 +26612,7 @@ const draftAdd = fn("Main.draftAdd")(function* (options) {
|
|
|
26539
26612
|
const worktree = yield* worktreeIn(options);
|
|
26540
26613
|
const draft = yield* add$1(worktree, {
|
|
26541
26614
|
...yield* rangeIn(options, worktree),
|
|
26542
|
-
body: yield*
|
|
26615
|
+
body: yield* text$1(options, "body"),
|
|
26543
26616
|
id: options["id"] ?? randomUUID(),
|
|
26544
26617
|
at: stamp(options),
|
|
26545
26618
|
wroteBy: "agent"
|
|
@@ -26549,7 +26622,7 @@ const draftAdd = fn("Main.draftAdd")(function* (options) {
|
|
|
26549
26622
|
const draftEdit = fn("Main.draftEdit")(function* (options) {
|
|
26550
26623
|
const draft = yield* edit(yield* worktreeIn(options), {
|
|
26551
26624
|
id: yield* required(options, "id"),
|
|
26552
|
-
body: yield*
|
|
26625
|
+
body: yield* text$1(options, "body"),
|
|
26553
26626
|
at: stamp(options),
|
|
26554
26627
|
by: "agent"
|
|
26555
26628
|
});
|
|
@@ -26566,7 +26639,7 @@ const draftSend = fn("Main.draftSend")(function* (options) {
|
|
|
26566
26639
|
const commentReply = fn("Main.commentReply")(function* (options) {
|
|
26567
26640
|
const batch = yield* reply(yield* worktreeIn(options), {
|
|
26568
26641
|
to: yield* required(options, "to"),
|
|
26569
|
-
body: yield*
|
|
26642
|
+
body: yield* text$1(options, "body"),
|
|
26570
26643
|
id: options["id"] ?? randomUUID(),
|
|
26571
26644
|
at: stamp(options)
|
|
26572
26645
|
});
|
|
@@ -26588,7 +26661,7 @@ const commentTake = fn("Main.commentTake")(function* (options) {
|
|
|
26588
26661
|
const commentAnswer = fn("Main.commentAnswer")(function* (options) {
|
|
26589
26662
|
const report = yield* answer$3(yield* worktreeNamed(options), {
|
|
26590
26663
|
id: yield* required(options, "id"),
|
|
26591
|
-
body: yield*
|
|
26664
|
+
body: yield* text$1(options, "body"),
|
|
26592
26665
|
asks: options["question"] !== void 0,
|
|
26593
26666
|
at: stamp(options),
|
|
26594
26667
|
choices: yield* choices(options, "choice")
|
|
@@ -26610,14 +26683,14 @@ const remarkList = fn("Main.remarkList")(function* (options) {
|
|
|
26610
26683
|
const remarkAccept = fn("Main.remarkAccept")(function* (options) {
|
|
26611
26684
|
const report = yield* accept(yield* readingIn(options), {
|
|
26612
26685
|
id: yield* required(options, "id"),
|
|
26613
|
-
body: options["body"],
|
|
26686
|
+
body: options["body"] === void 0 ? void 0 : yield* text$1(options, "body"),
|
|
26614
26687
|
at: stamp(options),
|
|
26615
26688
|
commentId: options["comment"] ?? randomUUID()
|
|
26616
26689
|
});
|
|
26617
26690
|
yield* answer(options, report);
|
|
26618
26691
|
});
|
|
26619
26692
|
const remarkReply = fn("Main.remarkReply")(function* (options) {
|
|
26620
|
-
const report = yield* answer$1(yield* required(options, "repo"), yield* worktreeIn(options), yield* required(options, "id"), yield*
|
|
26693
|
+
const report = yield* answer$1(yield* required(options, "repo"), yield* worktreeIn(options), yield* required(options, "id"), yield* text$1(options, "body"));
|
|
26621
26694
|
yield* answer(options, { answered: report.answered });
|
|
26622
26695
|
});
|
|
26623
26696
|
const remarkDismiss = fn("Main.remarkDismiss")(function* (options) {
|
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.204",
|
|
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": {
|