Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 29 to 318

Compare

+15 −7 in 4 places
Lines 24–36 at 318 (were 24–36 at 29)
2424 View,
2525} from "../index.ts";
2626
27−const textOf = (lines: readonly string[]): string => (lines.length === 0 ? "" : lines.join("\n") + "\n");
27+const textOf = (lines: readonly string[]): string => (lines.length === 0 ? "" : `${lines.join("\n")}\n`);
2828
2929import { EditGen, type Files, filesFromView, filesToRecord, sameFiles } from "./gen.ts";
3030import { Repo, Rng } from "./helpers.ts";
3131
32−const BASE_SEED = Number(process.env["PROP_SEED"] ?? 20260621);
33−const CASES = Number(process.env["PROP_CASES"] ?? 250);
32+const BASE_SEED = Number(process.env.PROP_SEED ?? 20260621);
33+const CASES = Number(process.env.PROP_CASES ?? 250);
3434
3535/** A hunk in terms of the old view's visible lines. start === end is a pure insertion at gap start. */
3636interface PlainHunk {
Lines 98–104 at 318 (were 98–104 at 29)
9898 usedFiles.add(path);
9999 const lines = fresh(rng.range(1, 3));
100100 hunks.push({ file: path, start: 0, end: 0, lines });
101− edits.push({ file: path, old: "", new: lines.join("\n") + "\n" });
101+ edits.push({ file: path, old: "", new: `${lines.join("\n")}\n` });
102102 parts.push(`create ${path} ${JSON.stringify(lines)}`);
103103 return;
104104 }
Lines 429–435 at 318 (were 429–435 at 29)
429429 const a = Math.max(0, i - rng.range(0, 2));
430430 const b = Math.min(n, j + rng.range(0, 2));
431431 const edit = gen.textEdit(file, all, i, j, add, "both") as { old: string; new: string };
432− const text = (ls: readonly string[]) => (ls.length ? ls.join("\n") + "\n" : "");
432+ const text = (ls: readonly string[]) => (ls.length ? `${ls.join("\n")}\n` : "");
433433 const whole = text(all);
434434 const wider = { file, old: text(all.slice(a, b)), new: text([...all.slice(a, i), ...add, ...all.slice(j, b)]) };
435435 const unique = wider.old !== "" && whole.indexOf(wider.old) === whole.lastIndexOf(wider.old);
Lines 453–470 at 318 (were 453–462 at 29)
453453 [before, "before"],
454454 ] as const) {
455455 subset(claimsOf(narrow), claimsOf(both), `claims ${name} ⊆ both`);
456− subset(narrow.deps, both.deps, `deps ${name} ⊆ both`);
456+ subset(
457+ [...repo.graph.closureOf(narrow.deps)],
458+ [...repo.graph.closureOf(both.deps)],
459+ `dependency closure ${name} ⊆ both`,
460+ );
457461 }
458462 subset(claimsOf(both), claimsOf(wide), "claims both ⊆ wide");
459− subset(both.deps, wide.deps, "deps both ⊆ wide");
463+ subset(
464+ [...repo.graph.closureOf(both.deps)],
465+ [...repo.graph.closureOf(wide.deps)],
466+ "dependency closure both ⊆ wide",
467+ );
460468 for (const other of pool) {
461469 const [hitAfter, hitBefore, hitBoth, hitWide] = [after, before, both, wide].map(
462470 (v) => keyOverlap(v, other).length > 0,
MCP
compare on this site's /mcp
CLI
abso diff 29 318 src/engine/test/concurrent.test.ts --json
JSON
/christopher/abso-core/compare/29..318?file=src%2Fengine%2Ftest%2Fconcurrent.test.ts&format=json