Versions 189 to 190
new file, 138 lines
10+
13+
16+ console.error("usage: node scripts/autosettle/extract.ts <seat folder> <cases.json> [--since 8d]");
19+const since = process.argv.includes("--since") ? process.argv[process.argv.indexOf("--since") + 1]! : "8d";
21+ execFileSync("abso", args, { cwd: seat, encoding: "utf8", maxBuffer: 1 << 28, shell: process.platform === "win32" });
22+
30+
48+for (const c of review.changes) for (const v of c.versions ?? []) messages.set(v.version, v.message);
60+
66+ while (tail < a.length - start && tail < b.length - start && a[a.length - 1 - tail] === b[b.length - 1 - tail])
70+
71+/** The lines of `r` between the context above and below a hunk of `t`, found by a few anchor lines. */
77+ for (let i = from; i + needle.length <= r.length; i++) if (needle.every((l, j) => r[i + j] === l)) return i;
87+
103+ context = { before: theirs.slice(Math.max(0, h.start - 15), h.start), after: theirs.slice(h.bEnd, h.bEnd + 15) };
110+ else if (region && theirsLines && s.kept === "both") yours = region.slice(0, region.length - theirsLines.length);
122+ theirs: { agent: s.theirs.agent, version: s.theirs.version, message: messageOf(s.theirs.version) },
137+ `${cases.length} settled collisions: yours ${count("yours")}, theirs ${count("theirs")}, both ${count("both")}, rewrote ${count("rewrote")}; ${cases.filter((c) => c.yours !== null).length} with both sides recoverable.`,
- MCP
- compare on this site's /mcp
- CLI
- abso diff 189 190 scripts/autosettle/extract.ts --json
- JSON
- /christopher/abso-core/compare/189..190?file=scripts%2Fautosettle%2Fextract.ts&format=json