@eliya-oss/agent-diff 0.1.0-alpha.90 → 0.1.0-alpha.91
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 +6 -0
- package/dist/main.js +12 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -9811,7 +9811,7 @@ var init_pane = __esmMin((() => {
|
|
|
9811
9811
|
init_commands();
|
|
9812
9812
|
init_init();
|
|
9813
9813
|
init_pane();
|
|
9814
|
-
var version$1 = "0.1.0-alpha.
|
|
9814
|
+
var version$1 = "0.1.0-alpha.91";
|
|
9815
9815
|
//#endregion
|
|
9816
9816
|
//#region src/cli/upgrade.ts
|
|
9817
9817
|
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, runUpgrade, statusOf$1, sayFound, sayDone, attempted, REFRESH_MS, refreshSkills, updatedIn, sayRefreshed, upgradeReport;
|
|
@@ -13770,7 +13770,7 @@ var init_theme = __esmMin((() => {
|
|
|
13770
13770
|
}));
|
|
13771
13771
|
//#endregion
|
|
13772
13772
|
//#region src/tui/diffview.ts
|
|
13773
|
-
var WASH, NOTE_MIN, ANSWER_MARK, REPLY_MARK, OVERSCAN, SIGN_WIDTH, SCROLL_ROWS, PAN_COLUMNS, WAYS, notchesIn, takenOver, wheelTo, SIGNS, numberFor, DiffView, startsOf, bareOf, noteKey, keyOf, groupOf, isChrome, alike, heldAt, sameLine, NO_SPANS, lineStarts, overLine, shifted, acrossLines, spansByLine, textAt, noteSpans, NOTE_PAINT, wrap, headOf, spokenLines, answerLines, noteLines, noteRows, proseRows, proseAt, notesAt, codeRow, rowsFor, layout, lineNumbers, BARE_SIGN, signFor, lineSigns, sideLineOf;
|
|
13773
|
+
var WASH, NOTE_MIN, ANSWER_MARK, REPLY_MARK, OVERSCAN, SIGN_WIDTH, SCROLL_ROWS, PAN_COLUMNS, WAYS, notchesIn, takenOver, wheelTo, SIGNS, numberFor, DiffView, startsOf, bareOf, noteKey, keyOf, groupOf, isChrome, alike, heldAt, sameLine, NO_SPANS, lineStarts, overLine, shifted, acrossLines, spansByLine, textAt, noteSpans, NOTE_PAINT, wrap, headOf, spokenLines, answerLines, noteLines, noteRows, proseRows, freshLines, proseAt, notesAt, codeRow, rowsFor, layout, lineNumbers, BARE_SIGN, signFor, lineSigns, sideLineOf;
|
|
13774
13774
|
var init_diffview = __esmMin((() => {
|
|
13775
13775
|
init_dist();
|
|
13776
13776
|
init_patch();
|
|
@@ -13978,7 +13978,8 @@ var init_diffview = __esmMin((() => {
|
|
|
13978
13978
|
notes,
|
|
13979
13979
|
room,
|
|
13980
13980
|
gaps,
|
|
13981
|
-
prose
|
|
13981
|
+
prose,
|
|
13982
|
+
fresh: freshLines(patch)
|
|
13982
13983
|
});
|
|
13983
13984
|
this.starts = startsOf(this.display);
|
|
13984
13985
|
this.code.filetype = pathToFiletype(patch.path) ?? "text";
|
|
@@ -14358,10 +14359,16 @@ var init_diffview = __esmMin((() => {
|
|
|
14358
14359
|
gap: false,
|
|
14359
14360
|
prose: true
|
|
14360
14361
|
}));
|
|
14361
|
-
|
|
14362
|
+
freshLines = (patch) => new Set(patch.rows.flatMap((row) => {
|
|
14362
14363
|
const line = sideLineOf(row, "new");
|
|
14364
|
+
return line === void 0 ? [] : [line];
|
|
14365
|
+
}));
|
|
14366
|
+
proseAt = (plan, row, after) => {
|
|
14367
|
+
const fresh = sideLineOf(row, "new");
|
|
14368
|
+
const line = fresh ?? sideLineOf(row, "old");
|
|
14363
14369
|
if (line === void 0) return [];
|
|
14364
|
-
|
|
14370
|
+
const wanted = plan.prose.filter((entry) => entry.after === after && entry.line === line);
|
|
14371
|
+
return fresh !== void 0 ? wanted : wanted.filter(() => !plan.fresh.has(line));
|
|
14365
14372
|
};
|
|
14366
14373
|
notesAt = (plan, row) => plan.notes.filter((note) => sideLineOf(row, note.side) === note.line).flatMap((note, at) => noteRows(note, row.index, plan.room, at + 1));
|
|
14367
14374
|
codeRow = (plan, row) => ({
|
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.91",
|
|
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": {
|