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 165 to 166

Compare

+27 −0 in 1 place
Lines 22–54 at 166 (were 22–27 at 165)
2222});
2323
2424describe("commitShared", () => {
25+ it("reads one lazy file at a time and does not read symlink placeholder text", async (t) => {
26+ const fs = new MemoryFS();
27+ const dir = "/repo";
28+ await git.init({ fs, dir, defaultBranch: "main" });
29+ let writes = 0;
30+ const writeBlob = git.writeBlob;
31+ t.mock.method(git, "writeBlob", async (options: Parameters<typeof writeBlob>[0]) => {
32+ const result = await writeBlob(options);
33+ writes++;
34+ return result;
35+ });
36+ const files = {
37+ get a() {
38+ assert.equal(writes, 0);
39+ return "first";
40+ },
41+ get b() {
42+ assert.equal(writes, 1);
43+ return "second";
44+ },
45+ get link(): string {
46+ throw Error("symlink placeholder text must not be read");
47+ },
48+ };
49+ await commitShared(fs, dir, null, { version: 0, files, modes: { link: { link: "a" } } }, () => null);
50+ assert.equal(writes, 3);
51+ });
2552 it("writes shared as a commit with its modes, then only what changed", async () => {
2653 const fs = new MemoryFS();
2754 const dir = "/repo";
MCP
compare on this site's /mcp
CLI
abso diff 165 166 server/test/push.test.ts --json
JSON
/christopher/abso-core/compare/165..166?file=server%2Ftest%2Fpush.test.ts&format=json